Disable extra notification with save-after-copy

This commit is contained in:
Joseph Charamut
2020-02-05 23:14:43 -05:00
parent 387adc3e35
commit 93b03ee8f1

View File

@@ -29,14 +29,16 @@ ScreenshotSaver::ScreenshotSaver() {
}
void ScreenshotSaver::saveToClipboard(const QPixmap &capture) {
SystemNotification().sendMessage(
QObject::tr("Capture saved to clipboard"));
QApplication::clipboard()->setPixmap(capture);
if (ConfigHandler().saveAfterCopyValue()) {
if (!ConfigHandler().saveAfterCopyPathValue().isEmpty()) {
saveToFilesystem(capture, ConfigHandler().saveAfterCopyPathValue());
}
} else {
SystemNotification().sendMessage(
QObject::tr("Capture saved to clipboard"));
}
QApplication::clipboard()->setPixmap(capture);
}
bool ScreenshotSaver::saveToFilesystem(const QPixmap &capture,