From 94d1578454dbcdec7a860e168e6f6154b4662fb3 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 12 Sep 2020 11:16:40 +0200 Subject: [PATCH] style: change order of menu entries; add win title --- main.ts | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/main.ts b/main.ts index 9c6bceab8..bd508040d 100644 --- a/main.ts +++ b/main.ts @@ -24,6 +24,7 @@ function createWindow(): BrowserWindow { frame: false, minWidth: 900, minHeight: 700, + title: 'IPTVnator', }); const menu = createMenu(win); Menu.setApplicationMenu(menu); @@ -81,6 +82,21 @@ function createMenu(win: BrowserWindow) { }) ); + // copy-paste shortcuts workaround for mac os + if (process.platform === 'darwin') { + menu.append( + new MenuItem({ + label: 'Edit', + submenu: [ + { role: 'cut' }, + { role: 'copy' }, + { role: 'paste' }, + { role: 'delete' }, + ], + }) + ); + } + menu.append( new MenuItem({ label: 'Help', @@ -115,21 +131,6 @@ function createMenu(win: BrowserWindow) { }) ); - // copy-paste shortcuts workaround for mac os - if (process.platform === 'darwin') { - menu.append( - new MenuItem({ - label: 'Edit', - submenu: [ - { role: 'cut' }, - { role: 'copy' }, - { role: 'paste' }, - { role: 'delete' }, - ], - }) - ); - } - return menu; }