[DE] fix bug 54348
This commit is contained in:
parent
4e69950665
commit
87635fde48
|
@ -325,7 +325,8 @@ define([
|
||||||
})).on('click', _on_btn_zoom.bind(me, 'up'));
|
})).on('click', _on_btn_zoom.bind(me, 'up'));
|
||||||
|
|
||||||
me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this));
|
me.header.btnOptions.menu.on('item:click', me.onOptionsItemClick.bind(this));
|
||||||
if ( !Common.UI.Themes.isDarkTheme() ) {
|
var document = DE.getController('Main').document;
|
||||||
|
if ( !Common.UI.Themes.isDarkTheme() || /^pdf|djvu|xps|oxps$/.test(document.fileType) ) {
|
||||||
me.header.menuItemsDarkMode.hide();
|
me.header.menuItemsDarkMode.hide();
|
||||||
me.header.menuItemsDarkMode.$el.prev('.divider').hide();
|
me.header.menuItemsDarkMode.$el.prev('.divider').hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue