Fixed double click sys icon
Was an issue with double clicking the icon when the app was full screen/ fullscreen + minimized. Now works as expected.
This commit is contained in:
parent
c07ec9aa23
commit
1c89b90cbb
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ void MainWindow::createTrayIcon() {
|
|||
|
||||
void MainWindow::iconActivated(QSystemTrayIcon::ActivationReason reason) {
|
||||
if (reason == QSystemTrayIcon::DoubleClick) {
|
||||
if (windowState() != Qt::WindowMinimized)
|
||||
if (windowState() != Qt::WindowMinimized && windowState() != Qt::WindowMinimized + Qt::WindowMaximized)
|
||||
showMinimized();
|
||||
else {
|
||||
showNormal();
|
||||
|
|
Loading…
Reference in a new issue