mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
moved almost all Application to AppClass (autoupdate and singleinstance left), logs rewritten
This commit is contained in:
@@ -1212,7 +1212,7 @@ void Window::toggleDisplayNotifyFromTray() {
|
||||
}
|
||||
|
||||
void Window::closeEvent(QCloseEvent *e) {
|
||||
if (MTP::authedId() && !App::app()->isSavingSession() && minimizeToTray()) {
|
||||
if (MTP::authedId() && !Sandboxer::isSavingSession() && minimizeToTray()) {
|
||||
e->ignore();
|
||||
} else {
|
||||
App::quit();
|
||||
|
Reference in New Issue
Block a user