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

Remove some App::wnd() occurences.

This commit is contained in:
John Preston
2017-08-08 11:56:10 +02:00
parent b08732cf28
commit 65d81f96f3
7 changed files with 49 additions and 44 deletions

View File

@@ -80,6 +80,9 @@ MainWindow::MainWindow() : QWidget()
}
bool MainWindow::hideNoQuit() {
if (App::quitting()) {
return false;
}
if (Global::WorkMode().value() == dbiwmTrayOnly || Global::WorkMode().value() == dbiwmWindowAndTray) {
if (minimizeToTray()) {
Ui::showChatsList();