Disable extra notification with save-after-copy
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user