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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user