mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Fix setting offline on quit.
This commit is contained in:
@@ -1047,7 +1047,7 @@ void Application::preventWindowActivation() {
|
||||
void Application::QuitAttempt() {
|
||||
auto prevents = false;
|
||||
if (AuthSession::Exists() && !Sandbox::Instance().isSavingSession()) {
|
||||
if (auto mainwidget = App::main()) {
|
||||
if (const auto mainwidget = App::main()) {
|
||||
if (mainwidget->isQuitPrevent()) {
|
||||
prevents = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user