File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ async function getCredentialPassphrase(parentWindow) {
32
32
alwaysOnTop : false ,
33
33
useContentSize : true ,
34
34
modal : Boolean ( parentWindow ) ,
35
+ autoHideMenuBar : true ,
35
36
menuBarVisible : false ,
36
37
webPreferences : {
37
38
nodeIntegration : false ,
@@ -42,7 +43,9 @@ async function getCredentialPassphrase(parentWindow) {
42
43
} ,
43
44
} ) ;
44
45
46
+ // hide app menu for various platforms
45
47
promptWindow . setMenu ( null ) ;
48
+ promptWindow . removeMenu ( ) ;
46
49
promptWindow . setMenuBarVisibility ( false ) ;
47
50
48
51
const getOptionsListener = event => {
@@ -128,7 +131,8 @@ async function showAboutDialog(wktApp, parentWindow) {
128
131
skipTaskbar : true ,
129
132
alwaysOnTop : false ,
130
133
useContentSize : true ,
131
- modal : Boolean ( parentWindow ) ,
134
+ modal : Boolean ( parentWindow ) , // false causes problems with app menu appearing
135
+ autoHideMenuBar : true ,
132
136
menuBarVisible : false ,
133
137
webPreferences : {
134
138
nodeIntegration : false ,
@@ -139,7 +143,9 @@ async function showAboutDialog(wktApp, parentWindow) {
139
143
} ,
140
144
} ) ;
141
145
146
+ // hide app menu for various platforms
142
147
promptWindow . setMenu ( null ) ;
148
+ promptWindow . removeMenu ( ) ;
143
149
promptWindow . setMenuBarVisibility ( false ) ;
144
150
145
151
const getOptionsListener = event => {
You can’t perform that action at this time.
0 commit comments