Commit 1c89b90c authored by Matt Lowe's avatar Matt Lowe
Browse files

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.
parent c07ec9aa
...@@ -447,7 +447,7 @@ void MainWindow::createTrayIcon() { ...@@ -447,7 +447,7 @@ void MainWindow::createTrayIcon() {
void MainWindow::iconActivated(QSystemTrayIcon::ActivationReason reason) { void MainWindow::iconActivated(QSystemTrayIcon::ActivationReason reason) {
if (reason == QSystemTrayIcon::DoubleClick) { if (reason == QSystemTrayIcon::DoubleClick) {
if (windowState() != Qt::WindowMinimized) if (windowState() != Qt::WindowMinimized && windowState() != Qt::WindowMinimized + Qt::WindowMaximized)
showMinimized(); showMinimized();
else { else {
showNormal(); showNormal();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment