diff --git a/apps/spreadsheeteditor/main/app/view/ViewTab.js b/apps/spreadsheeteditor/main/app/view/ViewTab.js index 70df8db8f..f0ea6aa11 100644 --- a/apps/spreadsheeteditor/main/app/view/ViewTab.js +++ b/apps/spreadsheeteditor/main/app/view/ViewTab.js @@ -421,8 +421,7 @@ define([ Common.NotificationCenter.on('uitheme:countchanged', _fill_themes.bind(me)); _fill_themes.call(me); - if (me.view.btnInterfaceTheme.menu.items.length) { - me.btnInterfaceTheme.setMenu(new Common.UI.Menu({items: menuItems})); + if (me.btnInterfaceTheme.menu.items.length) { me.btnInterfaceTheme.menu.on('item:click', _.bind(function (menu, item) { var value = item.value; Common.UI.Themes.setTheme(value);