mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
fixes #55576
This commit is contained in:
@@ -502,6 +502,8 @@ export class Menubar {
|
||||
} else if (isMenubarMenuItemAction(item)) {
|
||||
if (item.id === 'workbench.action.openRecent') {
|
||||
this.insertRecentMenuItems(menu);
|
||||
} else if (item.id === 'workbench.action.showAboutDialog') {
|
||||
this.insertCheckForUpdatesItems(menu);
|
||||
}
|
||||
|
||||
// Store the keybinding
|
||||
@@ -523,6 +525,14 @@ export class Menubar {
|
||||
}
|
||||
}
|
||||
|
||||
private insertCheckForUpdatesItems(menu: Electron.Menu) {
|
||||
const updateItems = this.getUpdateMenuItems();
|
||||
if (updateItems.length) {
|
||||
updateItems.forEach(i => menu.append(i));
|
||||
menu.append(__separator__());
|
||||
}
|
||||
}
|
||||
|
||||
private insertRecentMenuItems(menu: Electron.Menu) {
|
||||
const { workspaces, files } = this.historyMainService.getRecentlyOpened();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user