[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});
|
||||||
this.view.btnInterfaceTheme.menu.clearAll();
|
if ( menu_item ) {
|
||||||
menu_item.setChecked(true, true);
|
this.view.btnInterfaceTheme.menu.clearAll();
|
||||||
|
menu_item.setChecked(true, true);
|
||||||
|
}
|
||||||
this.view.btnDarkDocument.setDisabled(!Common.UI.Themes.isDarkTheme());
|
this.view.btnDarkDocument.setDisabled(!Common.UI.Themes.isDarkTheme());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -202,8 +202,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});
|
||||||
this.view.btnInterfaceTheme.menu.clearAll();
|
if ( !!menu_item ) {
|
||||||
menu_item.setChecked(true, true);
|
this.view.btnInterfaceTheme.menu.clearAll();
|
||||||
|
menu_item.setChecked(true, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -284,8 +284,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});
|
||||||
this.view.btnInterfaceTheme.menu.clearAll();
|
if ( !!menu_item ) {
|
||||||
menu_item.setChecked(true, true);
|
this.view.btnInterfaceTheme.menu.clearAll();
|
||||||
|
menu_item.setChecked(true, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue