2
0
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:
23rd
2019-01-31 23:36:15 +03:00
committed by John Preston
parent 27528d084f
commit 769923c6cc
3 changed files with 39 additions and 1 deletions

View File

@@ -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;
}