2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Show not supported themes placeholders.

This commit is contained in:
John Preston
2019-09-05 23:21:44 +03:00
parent 639b4bdd27
commit 910f16312c
12 changed files with 194 additions and 90 deletions

View File

@@ -46,9 +46,9 @@ void Controller::firstShow() {
void Controller::checkThemeEditor() {
using namespace Window::Theme;
if (Background()->isEditingTheme()) {
showRightColumn(
Box<Editor>(this, Background()->themeObject().cloud));
if (const auto editing = Background()->editingTheme()) {
showRightColumn(Box<Editor>(this, *editing));
}
}