File tree 2 files changed +4
-7
lines changed
arduino-ide-extension/src/browser/theia
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ export class CommonFrontendContribution extends TheiaCommonFrontendContribution
19
19
CommonCommands . AUTO_SAVE ,
20
20
CommonCommands . OPEN_PREFERENCES ,
21
21
CommonCommands . SELECT_ICON_THEME ,
22
- CommonCommands . SELECT_COLOR_THEME ,
23
- CommonCommands . OPEN_PREFERENCES
22
+ CommonCommands . SELECT_COLOR_THEME
24
23
] ) {
25
24
registry . unregisterMenuAction ( command ) ;
26
25
}
Original file line number Diff line number Diff line change 1
1
import { injectable } from 'inversify' ;
2
- import { isOSX } from '@theia/core/lib/common/os' ;
3
2
import { MenuModelRegistry } from '@theia/core/lib/common/menu' ;
4
3
import { KeybindingRegistry } from '@theia/core/lib/browser/keybinding' ;
5
4
import { CommonCommands , CommonMenus } from '@theia/core/lib/browser' ;
@@ -10,10 +9,9 @@ export class PreferencesContribution extends TheiaPreferencesContribution {
10
9
11
10
registerMenus ( registry : MenuModelRegistry ) : void {
12
11
super . registerMenus ( registry ) ;
13
- if ( isOSX ) {
14
- // The settings group: preferences, CLI config is not part of the `File` menu on macOS.
15
- registry . unregisterMenuAction ( CommonCommands . OPEN_PREFERENCES . id , CommonMenus . FILE_SETTINGS_SUBMENU_OPEN ) ;
16
- }
12
+ // The settings group: preferences, CLI config is not part of the `File` menu on macOS.
13
+ // On Windows and Linux, we rebind it to `Preferences...`. It is safe to remove here.
14
+ registry . unregisterMenuAction ( CommonCommands . OPEN_PREFERENCES . id , CommonMenus . FILE_SETTINGS_SUBMENU_OPEN ) ;
17
15
}
18
16
19
17
registerKeybindings ( registry : KeybindingRegistry ) : void {
You can’t perform that action at this time.
0 commit comments