[all] fix bug 55359

This commit is contained in:
Maxim Kadushkin 2022-02-24 13:10:27 +03:00
parent 7f3feb26c9
commit 4ba266c6c7
3 changed files with 12 additions and 6 deletions

View file

@ -246,8 +246,10 @@ define([
if (this.view) {
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
if ( menu_item ) {
this.view.btnInterfaceTheme.menu.clearAll();
menu_item.setChecked(true, true);
}
this.view.btnDarkDocument.setDisabled(!Common.UI.Themes.isDarkTheme());
}
},

View file

@ -202,9 +202,11 @@ define([
if (this.view) {
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
if ( !!menu_item ) {
this.view.btnInterfaceTheme.menu.clearAll();
menu_item.setChecked(true, true);
}
}
},
applyZoom: function (value) {

View file

@ -284,10 +284,12 @@ define([
if (this.view) {
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
if ( !!menu_item ) {
this.view.btnInterfaceTheme.menu.clearAll();
menu_item.setChecked(true, true);
}
}
}
}, SSE.Controllers.ViewTab || {}));
});