fix main window visibility switching
This commit is contained in:
parent
122b886cab
commit
65e232d2d2
@ -1014,8 +1014,9 @@ void FormMain::changeEvent(QEvent* event) {
|
|||||||
SystemTrayIcon::isSystemTrayDesired() && SystemTrayIcon::isSystemTrayAreaAvailable() &&
|
SystemTrayIcon::isSystemTrayDesired() && SystemTrayIcon::isSystemTrayAreaAvailable() &&
|
||||||
qApp->settings()->value(GROUP(GUI), SETTING(GUI::HideMainWindowWhenMinimized)).toBool()) {
|
qApp->settings()->value(GROUP(GUI), SETTING(GUI::HideMainWindowWhenMinimized)).toBool()) {
|
||||||
event->ignore();
|
event->ignore();
|
||||||
|
|
||||||
QTimer::singleShot(CHANGE_EVENT_DELAY, this, [this]() {
|
QTimer::singleShot(CHANGE_EVENT_DELAY, this, [this]() {
|
||||||
switchVisibility();
|
switchVisibility(true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user