mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
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) {
|
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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue