From dfe1c40868cf204d272623371814dd238035350a Mon Sep 17 00:00:00 2001 From: Kimberly Date: Thu, 21 Apr 2022 12:15:11 -0400 Subject: [PATCH 1/2] 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. --- stacer/app.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stacer/app.cpp b/stacer/app.cpp index 35ecb773..ca5fc3a4 100644 --- a/stacer/app.cpp +++ b/stacer/app.cpp @@ -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); } From e56e89dbc3c731ceb269929140757c3b98035dde Mon Sep 17 00:00:00 2001 From: Kimberly Date: Fri, 22 Apr 2022 18:11:46 -0400 Subject: [PATCH 2/2] Removed an errand close bracket --- stacer/app.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacer/app.cpp b/stacer/app.cpp index ca5fc3a4..5aaf3115 100644 --- a/stacer/app.cpp +++ b/stacer/app.cpp @@ -150,7 +150,7 @@ void App::createTrayActions() connect(mTrayIcon, &QSystemTrayIcon::activated, this, [=](QSystemTrayIcon::ActivationReason){ setVisible(true); activateWindow(); - })); + }); mTrayMenu->addAction(action); }