1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
PKEv 2015-03-14 23:06:33 +03:00
parent ac9b327fe7
commit e3946b4435

View File

@ -459,23 +459,30 @@ void Widget::onIconClick(QSystemTrayIcon::ActivationReason reason)
{
show();
activateWindow();
showNormal();
}
else if (isMinimized())
{
forceShow();
activateWindow();
showNormal();
}
else
{
hide();
if (Settings::getInstance().getMinimizeToTray())
hide();
else
showMinimized();
break;
}
break;
}
case QSystemTrayIcon::DoubleClick:
forceShow();
break;
case QSystemTrayIcon::MiddleClick:
hide();
if (Settings::getInstance().getMinimizeToTray())
hide();
else
showMinimized();
break;
case QSystemTrayIcon::Unknown:
if (isHidden())