[all] fix bug 55359
This commit is contained in:
parent
7f3feb26c9
commit
4ba266c6c7
|
@ -246,8 +246,10 @@ define([
|
||||||
if (this.view) {
|
if (this.view) {
|
||||||
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
|
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
|
||||||
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
|
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
|
||||||
|
if ( menu_item ) {
|
||||||
this.view.btnInterfaceTheme.menu.clearAll();
|
this.view.btnInterfaceTheme.menu.clearAll();
|
||||||
menu_item.setChecked(true, true);
|
menu_item.setChecked(true, true);
|
||||||
|
}
|
||||||
this.view.btnDarkDocument.setDisabled(!Common.UI.Themes.isDarkTheme());
|
this.view.btnDarkDocument.setDisabled(!Common.UI.Themes.isDarkTheme());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -202,9 +202,11 @@ define([
|
||||||
if (this.view) {
|
if (this.view) {
|
||||||
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
|
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
|
||||||
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
|
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
|
||||||
|
if ( !!menu_item ) {
|
||||||
this.view.btnInterfaceTheme.menu.clearAll();
|
this.view.btnInterfaceTheme.menu.clearAll();
|
||||||
menu_item.setChecked(true, true);
|
menu_item.setChecked(true, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
applyZoom: function (value) {
|
applyZoom: function (value) {
|
||||||
|
|
|
@ -284,10 +284,12 @@ define([
|
||||||
if (this.view) {
|
if (this.view) {
|
||||||
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
|
var current_theme = Common.UI.Themes.currentThemeId() || Common.UI.Themes.defaultThemeId(),
|
||||||
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
|
menu_item = _.findWhere(this.view.btnInterfaceTheme.menu.items, {value: current_theme});
|
||||||
|
if ( !!menu_item ) {
|
||||||
this.view.btnInterfaceTheme.menu.clearAll();
|
this.view.btnInterfaceTheme.menu.clearAll();
|
||||||
menu_item.setChecked(true, true);
|
menu_item.setChecked(true, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}, SSE.Controllers.ViewTab || {}));
|
}, SSE.Controllers.ViewTab || {}));
|
||||||
});
|
});
|
Loading…
Reference in a new issue