mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix some systray issues on windows
Fix qTox not hiding when clicking on systray icon due to losing focus when clicking on the system tray Fix the icon not being properly hidden on exit Thanks to @toweI for reporting those issues
This commit is contained in:
parent
c32eb98e6c
commit
7574569b3d
|
@ -319,6 +319,7 @@ Widget::~Widget()
|
|||
core->saveConfiguration();
|
||||
AutoUpdater::abortUpdates();
|
||||
delete core;
|
||||
icon->hide();
|
||||
hideMainForms();
|
||||
delete settingsWidget;
|
||||
delete addFriendForm;
|
||||
|
@ -609,10 +610,14 @@ void Widget::onIconClick(QSystemTrayIcon::ActivationReason reason)
|
|||
show();
|
||||
activateWindow();
|
||||
}
|
||||
else if (isMinimized() || !isActiveWindow())
|
||||
else if (isMinimized())
|
||||
{
|
||||
forceShow();
|
||||
}
|
||||
else
|
||||
{
|
||||
hide();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user