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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user