From 44bde86fde4871f60d01b74bdd48382c91f34cae Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Mon, 10 Jul 2023 10:47:10 +0200 Subject: [PATCH] fix(GODT-2780): fix 'QSystemTrayIcon::setVisible: No Icon set' warning in bridge-gui log on startup. --- internal/frontend/bridge-gui/bridge-gui/TrayIcon.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/frontend/bridge-gui/bridge-gui/TrayIcon.cpp b/internal/frontend/bridge-gui/bridge-gui/TrayIcon.cpp index c2ef66ca..d204f72e 100644 --- a/internal/frontend/bridge-gui/bridge-gui/TrayIcon.cpp +++ b/internal/frontend/bridge-gui/bridge-gui/TrayIcon.cpp @@ -192,6 +192,8 @@ TrayIcon::TrayIcon() if (!onLinux()) { // we disable this on linux because of a Qt bug that causes the signal to be emitted for other apps (GODT-2750) connect(this, &TrayIcon::messageClicked, []() { app().backend().showMainWindow("tray icon popup notification clicked"); }); } + + this->setIcon(); this->show(); // TrayIcon does not expose its screen, so we connect relevant screen events to our DPI change handler.