mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Respecting Quite Hours in Windows.
Also closing current chat on window close or passcode lock.
This commit is contained in:
@@ -285,11 +285,15 @@ bool hideWindowNoQuit() {
|
||||
if (!App::quitting()) {
|
||||
if (auto w = App::wnd()) {
|
||||
if (cWorkMode() == dbiwmTrayOnly || cWorkMode() == dbiwmWindowAndTray) {
|
||||
return w->minimizeToTray();
|
||||
if (w->minimizeToTray()) {
|
||||
Ui::showChatsList();
|
||||
return true;
|
||||
}
|
||||
} else if (cPlatform() == dbipMac || cPlatform() == dbipMacOld) {
|
||||
w->closeWithoutDestroy();
|
||||
w->updateIsActive(Global::OfflineBlurTimeout());
|
||||
w->updateGlobalMenu();
|
||||
Ui::showChatsList();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user