mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 11:06:16 -08:00
style: change order of menu entries; add win title
This commit is contained in:
1 parent
78ca56f2b6
commit
94d1578454
1 file changed
+16
-15
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user