diff options
author | 2022-07-22 13:57:10 -0500 | |
---|---|---|
committer | 2022-07-23 00:27:10 +0530 | |
commit | bd42816824a48aab387099069d25c586dfc67a2c (patch) | |
tree | edb80bb77c199f02a1a153797137eb7b9da25d9f /src | |
parent | e0d15c2ee0589f49cfef293606d69872d16b60f0 (diff) | |
download | whatsie-bd42816824a48aab387099069d25c586dfc67a2c.tar.gz whatsie-bd42816824a48aab387099069d25c586dfc67a2c.zip |
Hide/show window only when tray icon is left clicked (#65)v4.7.2
do nothing if the reason is the context menu.
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 5a7e6e2..f4d70a2 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1110,7 +1110,7 @@ void MainWindow::handleDownloadRequested(QWebEngineDownloadItem *download) { void MainWindow::iconActivated(QSystemTrayIcon::ActivationReason reason) { Q_UNUSED(reason); - if (settings.value("minimizeOnTrayIconClick", false).toBool() == false) + if (settings.value("minimizeOnTrayIconClick", false).toBool() == false || reason == QSystemTrayIcon::Context) return; if (isVisible()) { hide(); |