fix: add close window button to macOS menu (#2254)

This commit is contained in:
York
2026-07-19 10:39:48 +08:00
committed by GitHub
parent f152e03ae7
commit c5c91a02ac
+4 -2
View File
@@ -104,14 +104,14 @@ export default class MenuBuilder {
click: () => {
this.mainWindow.webContents.send('renderer-open-settings');
},
label: 'Settings',
label: 'Settings...',
},
{ type: 'separator' },
{
click: () => {
this.mainWindow.webContents.send('renderer-open-manage-servers');
},
label: 'Manage Servers',
label: 'Manage Servers...',
},
{
checked: privateMode,
@@ -141,6 +141,8 @@ export default class MenuBuilder {
},
label: 'Create Playlist...',
},
{ type: 'separator' },
{ role: 'close' },
],
};
const subMenuEdit: MenuItemConstructorOptions = { role: 'editMenu' };