Skip to content

Commit 124195c

Browse files
committed
fix(welcome): remove traffic light on Mac
Signed-off-by: Grigorii K. Shartsev <[email protected]>
1 parent cebf4e1 commit 124195c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/welcome/welcome.window.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
const { BrowserWindow } = require('electron')
2323
const { getBrowserWindowIcon } = require('../shared/icons.utils.js')
24+
const { isMac } = require('../shared/os.utils.js')
2425

2526
/**
2627
* @return {import('electron').BrowserWindow}
@@ -42,6 +43,11 @@ function createWelcomeWindow() {
4243
icon: getBrowserWindowIcon(),
4344
})
4445

46+
if (isMac()) {
47+
// Hide traffic light buttons on Mac
48+
window.setWindowButtonVisibility(false)
49+
}
50+
4551
window.loadURL(WELCOME_WINDOW_WEBPACK_ENTRY)
4652

4753
return window

0 commit comments

Comments
 (0)