File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ async function showAboutDialog(wktApp, parentWindow) {
117117 const MIN_HEIGHT = 120 ; // needs to be smaller than content height
118118
119119 return new Promise ( ( resolve , reject ) => {
120-
121120 let promptWindow = new BrowserWindow ( {
122121 width : WIDTH ,
123122 height : HEIGHT ,
@@ -131,9 +130,6 @@ async function showAboutDialog(wktApp, parentWindow) {
131130 skipTaskbar : true ,
132131 alwaysOnTop : false ,
133132 useContentSize : true ,
134- modal : Boolean ( parentWindow ) , // false causes problems with app menu appearing
135- autoHideMenuBar : true ,
136- menuBarVisible : false ,
137133 webPreferences : {
138134 nodeIntegration : false ,
139135 contextIsolation : true ,
@@ -142,10 +138,7 @@ async function showAboutDialog(wktApp, parentWindow) {
142138 preload : preloadFile
143139 } ,
144140 } ) ;
145-
146- // hide app menu for various platforms
147- promptWindow . setMenu ( null ) ;
148- promptWindow . removeMenu ( ) ;
141+ // hide app menu for Windows and Linux
149142 promptWindow . setMenuBarVisibility ( false ) ;
150143
151144 const getOptionsListener = event => {
You can’t perform that action at this time.
0 commit comments