From 32287a51f9e2e282407d802634fe4f05e7803547 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 6 Sep 2019 18:54:50 +0300 Subject: [PATCH] Don't show warning on theme autoupdate. --- Telegram/SourceFiles/data/data_cloud_themes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_cloud_themes.cpp b/Telegram/SourceFiles/data/data_cloud_themes.cpp index c049d39d37..bfe87702c1 100644 --- a/Telegram/SourceFiles/data/data_cloud_themes.cpp +++ b/Telegram/SourceFiles/data/data_cloud_themes.cpp @@ -24,7 +24,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL namespace Data { namespace { -constexpr auto kFirstReloadTimeout = 60 * crl::time(1000); +constexpr auto kFirstReloadTimeout = 10 * crl::time(1000); constexpr auto kReloadTimeout = 3600 * crl::time(1000); } // namespace @@ -189,6 +189,7 @@ void CloudThemes::updateFromDocument( cloud); if (preview) { Window::Theme::Apply(std::move(preview)); + Window::Theme::KeepApplied(); } }); }