Skip to content

Commit 33ecac1

Browse files
Merge pull request #64 from oracle/about-window
cleaning up custom about window settings
2 parents a60e8c6 + b3ed701 commit 33ecac1

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

electron/app/js/promptUtils.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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 => {

0 commit comments

Comments
 (0)