From 025218b048fa299fab9692cba8951255b1064363 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sun, 5 Dec 2021 17:42:14 +0300 Subject: [PATCH] [desktop] fix theme applying --- apps/documenteditor/main/app/controller/Viewport.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/Viewport.js b/apps/documenteditor/main/app/controller/Viewport.js index 3ea1a59c3..7805c9374 100644 --- a/apps/documenteditor/main/app/controller/Viewport.js +++ b/apps/documenteditor/main/app/controller/Viewport.js @@ -384,7 +384,8 @@ define([ }, onContentThemeChangedToDark: function (isdark) { - this.header.menuItemsDarkMode.setChecked(isdark, true); + if ( this.header.menuItemsDarkMode ) + this.header.menuItemsDarkMode.setChecked(isdark, true); }, onWindowResize: function(e) {