2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Shutdown on Linux fix attempt. Draft remove in empty conversation fix.

Larger badge of unread messages in history-to-down button.
Submit bot-start by Enter. Fix icons show in chat without input field.
This commit is contained in:
John Preston
2016-06-21 18:58:07 +03:00
parent c73b5a6da4
commit af4b3ba023
12 changed files with 137 additions and 47 deletions

View File

@@ -1285,9 +1285,14 @@ void MainWindow::toggleDisplayNotifyFromTray() {
}
void MainWindow::closeEvent(QCloseEvent *e) {
e->ignore();
if (!MTP::authedId() || Sandbox::isSavingSession() || !Ui::hideWindowNoQuit()) {
if (Sandbox::isSavingSession()) {
e->accept();
App::quit();
} else {
e->ignore();
if (!MTP::authedId() || !Ui::hideWindowNoQuit()) {
App::quit();
}
}
}