Ensure InTray is always set when window is closed

...and not only by click on tray icon
This commit is contained in:
loh.tar 2024-04-03 05:25:40 +02:00
parent c89c8f8978
commit 122db3c5ac

View file

@ -2149,7 +2149,6 @@ void WpaGui::trayActivated(QSystemTrayIcon::ActivationReason how) {
case QSystemTrayIcon::Trigger:
if (isVisible()) {
close();
tally.insert(InTray);
} else {
show();
activateWindow();
@ -2393,6 +2392,7 @@ void WpaGui::closeEvent(QCloseEvent* event) {
tally.insert(AckTrayIcon);
}
tally.insert(InTray);
event->accept();
}