From c9ca548ebb31b5b420c0899000588304588cd6b4 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 1 Nov 2021 14:41:02 +0100 Subject: [PATCH] implement temporary status bar messages --- src/librssguard/miscellaneous/application.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/librssguard/miscellaneous/application.cpp b/src/librssguard/miscellaneous/application.cpp index 8320b0b79..335099950 100644 --- a/src/librssguard/miscellaneous/application.cpp +++ b/src/librssguard/miscellaneous/application.cpp @@ -496,14 +496,15 @@ void Application::showGuiMessage(Notification::Event event, const GuiAction& action, QWidget* parent) { - if (SystemTrayIcon::areNotificationsEnabled() && dest.m_tray) { + if (SystemTrayIcon::areNotificationsEnabled()) { auto notification = m_notifications->notificationForEvent(event); notification.playSound(this); if (SystemTrayIcon::isSystemTrayDesired() && SystemTrayIcon::isSystemTrayAreaAvailable() && - notification.balloonEnabled()) { + notification.balloonEnabled() && + dest.m_tray) { trayIcon()->showMessage(msg.m_title, msg.m_message, msg.m_type, TRAY_ICON_BUBBLE_TIMEOUT, std::move(action.m_action)); return; }