From ed7a88ca17b8296fe151445a63b4da2982087a91 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 4 Jun 2019 19:17:22 +0300 Subject: [PATCH] Fixed display of update checking when autoupdate is toggled. --- Telegram/SourceFiles/settings/settings_advanced.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/settings/settings_advanced.cpp b/Telegram/SourceFiles/settings/settings_advanced.cpp index a0afa2259..fbc10af8d 100644 --- a/Telegram/SourceFiles/settings/settings_advanced.cpp +++ b/Telegram/SourceFiles/settings/settings_advanced.cpp @@ -165,8 +165,8 @@ void SetupUpdate(not_null container) { checker.start(); } else { checker.stop(); + setDefaultStatus(checker); } - setDefaultStatus(checker); }, toggle->lifetime()); if (install) { @@ -184,7 +184,6 @@ void SetupUpdate(not_null container) { cSetLastUpdateCheck(0); } checker.start(); - setDefaultStatus(checker); }, toggle->lifetime()); }