mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed a keeping online status after application quit.
Fixes https://github.com/telegramdesktop/tdesktop/issues/5528.
This commit is contained in:
@@ -1047,6 +1047,11 @@ void Application::preventWindowActivation() {
|
||||
void Application::QuitAttempt() {
|
||||
auto prevents = false;
|
||||
if (AuthSession::Exists() && !Sandbox::Instance().isSavingSession()) {
|
||||
if (auto mainwidget = App::main()) {
|
||||
if (mainwidget->isQuitPrevent()) {
|
||||
prevents = true;
|
||||
}
|
||||
}
|
||||
if (Auth().api().isQuitPrevent()) {
|
||||
prevents = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user