mirror of
https://github.com/oguzhaninan/Stacer.git
synced 2026-09-08 11:47:13 -04:00
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:
1 parent
0a1e8294a8
commit
dfe1c40868
1 file changed
+5
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user