mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-25 16:54:25 +00:00
Don't show warning on theme autoupdate.
This commit is contained in:
parent
37a4c79c81
commit
32287a51f9
@ -24,7 +24,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
namespace Data {
|
namespace Data {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
constexpr auto kFirstReloadTimeout = 60 * crl::time(1000);
|
constexpr auto kFirstReloadTimeout = 10 * crl::time(1000);
|
||||||
constexpr auto kReloadTimeout = 3600 * crl::time(1000);
|
constexpr auto kReloadTimeout = 3600 * crl::time(1000);
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
@ -189,6 +189,7 @@ void CloudThemes::updateFromDocument(
|
|||||||
cloud);
|
cloud);
|
||||||
if (preview) {
|
if (preview) {
|
||||||
Window::Theme::Apply(std::move(preview));
|
Window::Theme::Apply(std::move(preview));
|
||||||
|
Window::Theme::KeepApplied();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user