mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 22:26:16 -08:00
refactor: some improvements in app menu
Improved the class structure of menu and added "Settings" as new menu item
This commit is contained in:
3 files changed
+117
-67
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user