From 3c79d2456bdacb57a7b14dd3ac9a466302dc6602 Mon Sep 17 00:00:00 2001 From: Anthony Som Date: Mon, 5 Mar 2018 01:35:00 +0000 Subject: [PATCH] Do not send notification if m_noNotify is set. Solves #22 --- mainwindow.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index d7faf942..5f8b8519 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1015,9 +1015,12 @@ void MainWindow::saveSpecificedPath(QString path) hints["x-deepin-action-_open"] = command; QString summary = QString(tr("Picture has been saved to %1")).arg(savePath); - - m_notifyDBInterface->Notify("Deepin Screenshot", 0, "deepin-screenshot", "", - summary, actions, hints, 0); + + if (!m_noNotify) { + m_notifyDBInterface->Notify("Deepin Screenshot", 0, "deepin-screenshot", "", + summary, actions, hints, 0); + } + exitApp(); }