[themes] fix app launch

This commit is contained in:
Maxim Kadushkin 2022-06-06 19:26:24 +03:00
parent 74041ab373
commit 2a55a454c5

View file

@ -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);