2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Don't change real theme when editing.

This commit is contained in:
John Preston
2019-09-05 09:51:46 +03:00
parent 03bdd80b2f
commit 7485f0c960
9 changed files with 175 additions and 113 deletions

View File

@@ -999,6 +999,9 @@ void SetupDefaultThemes(not_null<Ui::VerticalLayout*> container) {
const auto chosen = [] {
const auto &object = Window::Theme::Background()->themeObject();
if (object.cloud.id) {
return Type(-1);
}
for (const auto &scheme : kSchemesList) {
if (object.pathAbsolute == scheme.path) {
return scheme.type;