Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Do not send notification if m_noNotify is set. Solves #22 #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down