Added Double-Click to Stacer's System Tray Icon

When Stacer is closed into the system tray it has always been inconvenient (ie. requires multiple clicks) to restore Stacer's window.  One has to click the system tray to reveal the menu and then click again one of the menu choices to bring up the Stacer window  This "fix" gives the user an extra power -- to just double-click Stacer's system tray icon to bring up the last window area s/he was on.
This commit is contained in:
Kimberly authored and GitHub committed 2022-04-21 12:15:11 -04:00
1 parent 0a1e8294a8
commit dfe1c40868
1 file changed
+5
+5
View File
@@ -147,6 +147,11 @@ void App::createTrayActions()
connect(action, &QAction::triggered, [=] {
clickSidebarButton(toolTip, true);
});
connect(mTrayIcon, &QSystemTrayIcon::activated, this, [=](QSystemTrayIcon::ActivationReason){
setVisible(true);
activateWindow();
}));
mTrayMenu->addAction(action);
}