mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
fixes #55264
This commit is contained in:
@@ -381,7 +381,9 @@ export class Menubar {
|
||||
case 'File':
|
||||
case 'Window':
|
||||
case 'Help':
|
||||
return isMacintosh && (this.windowsMainService.getWindowCount() === 0 || !!this.menubarMenus[menuId]);
|
||||
if (isMacintosh) {
|
||||
return this.windowsMainService.getWindowCount() === 0 || !!this.menubarMenus[menuId];
|
||||
}
|
||||
default:
|
||||
return this.windowsMainService.getWindowCount() > 0 && !!this.menubarMenus[menuId];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user