refactor: some improvements in app menu

Improved the class structure of menu
and added "Settings" as new menu item
This commit is contained in:
4gray committed 2021-02-27 13:37:43 +01:00
1 parent 83ed4cf442
commit e29f09d18c
3 files changed
+117 -67

No files matched your search

+2 -2
View File
@@ -94,8 +94,8 @@ try {
app.on('ready', () => {
// create main window and set menu
const win = createWindow();
const menu = AppMenu.createMenu(win);
Menu.setApplicationMenu(menu);
const menu = new AppMenu(win);
Menu.setApplicationMenu(menu.getMenu());
api.setMainWindow(win);
// create hidden window for epg worker