mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00: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