2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Respecting Quite Hours in Windows.

Also closing current chat on window close or passcode lock.
This commit is contained in:
John Preston
2016-10-17 13:55:17 +03:00
parent cf247384d3
commit 0902741b85
16 changed files with 121 additions and 56 deletions

View File

@@ -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;
}
}