fix main window visibility switching

This commit is contained in:
Martin Rotter 2022-08-15 09:13:13 +02:00
parent 122b886cab
commit 65e232d2d2

View File

@ -1014,8 +1014,9 @@ void FormMain::changeEvent(QEvent* event) {
SystemTrayIcon::isSystemTrayDesired() && SystemTrayIcon::isSystemTrayAreaAvailable() &&
qApp->settings()->value(GROUP(GUI), SETTING(GUI::HideMainWindowWhenMinimized)).toBool()) {
event->ignore();
QTimer::singleShot(CHANGE_EVENT_DELAY, this, [this]() {
switchVisibility();
switchVisibility(true);
});
}