From 93b03ee8f14cdb0be67c9e43bf811ad90c273f11 Mon Sep 17 00:00:00 2001 From: Joseph Charamut Date: Wed, 5 Feb 2020 23:14:43 -0500 Subject: [PATCH] Disable extra notification with save-after-copy --- src/utils/screenshotsaver.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/utils/screenshotsaver.cpp b/src/utils/screenshotsaver.cpp index 514874fc..b1242f53 100644 --- a/src/utils/screenshotsaver.cpp +++ b/src/utils/screenshotsaver.cpp @@ -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,