We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cebf4e1 commit 124195cCopy full SHA for 124195c
src/welcome/welcome.window.js
@@ -21,6 +21,7 @@
21
22
const { BrowserWindow } = require('electron')
23
const { getBrowserWindowIcon } = require('../shared/icons.utils.js')
24
+const { isMac } = require('../shared/os.utils.js')
25
26
/**
27
* @return {import('electron').BrowserWindow}
@@ -42,6 +43,11 @@ function createWelcomeWindow() {
42
43
icon: getBrowserWindowIcon(),
44
})
45
46
+ if (isMac()) {
47
+ // Hide traffic light buttons on Mac
48
+ window.setWindowButtonVisibility(false)
49
+ }
50
+
51
window.loadURL(WELCOME_WINDOW_WEBPACK_ENTRY)
52
53
return window
0 commit comments