Add check for tray notificacions

This commit is contained in:
lupoDharkael
2017-06-16 16:21:22 +02:00
parent 1e50d4fab9
commit 948b931ace
4 changed files with 1 additions and 13 deletions

View File

@@ -158,7 +158,7 @@ void Controller::openInfoWindow() {
void Controller::showDesktopNotification(QString msg) {
bool showMessages = QSettings().value("showDesktopNotification").toBool();
if (showMessages) {
if (showMessages && m_trayIcon->supportsMessages()) {
m_trayIcon->showMessage("Flameshot Info", msg);
}
}