fix: cmd + w doesn't close the window on macOS (#714) (#342)

cmd + w doesn't close the window on macOS. Based on @cscharf explanation - https://github.com/bitwarden/desktop/issues/714#issuecomment-810554674 - it seems that issue was introduced in response to erroneous Apple Store approver request. The code change reversed this change.
This commit is contained in:
kapitainsky 2021-04-13 19:31:34 +01:00 committed by GitHub
parent 827674847f
commit c832728b6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -9,8 +9,6 @@ import {
import { I18nService } from '../abstractions/i18n.service';
import { WindowMain } from './window.main';
import { isMacAppStore } from './utils';
export class BaseMenu {
protected editMenuItemOptions: MenuItemConstructorOptions;
protected viewSubMenuItemOptions: MenuItemConstructorOptions[];
@ -143,7 +141,7 @@ export class BaseMenu {
},
{
label: this.i18nService.t('close'),
role: isMacAppStore() ? 'quit' : 'close',
role: 'close',
},
];
}