mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
#1379 correct
This commit is contained in:
parent
ac9b327fe7
commit
e3946b4435
|
@ -459,23 +459,30 @@ void Widget::onIconClick(QSystemTrayIcon::ActivationReason reason)
|
||||||
{
|
{
|
||||||
show();
|
show();
|
||||||
activateWindow();
|
activateWindow();
|
||||||
|
showNormal();
|
||||||
}
|
}
|
||||||
else if (isMinimized())
|
else if (isMinimized())
|
||||||
{
|
{
|
||||||
forceShow();
|
forceShow();
|
||||||
|
activateWindow();
|
||||||
|
showNormal();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (Settings::getInstance().getMinimizeToTray())
|
||||||
hide();
|
hide();
|
||||||
|
else
|
||||||
|
showMinimized();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QSystemTrayIcon::DoubleClick:
|
|
||||||
forceShow();
|
|
||||||
break;
|
|
||||||
case QSystemTrayIcon::MiddleClick:
|
case QSystemTrayIcon::MiddleClick:
|
||||||
|
if (Settings::getInstance().getMinimizeToTray())
|
||||||
hide();
|
hide();
|
||||||
|
else
|
||||||
|
showMinimized();
|
||||||
break;
|
break;
|
||||||
case QSystemTrayIcon::Unknown:
|
case QSystemTrayIcon::Unknown:
|
||||||
if (isHidden())
|
if (isHidden())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user