1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Merge pull request #1741 from wAuner/patch-1

fix incorrect app closing for linux mint cinnamon
This commit is contained in:
Junyoung Choi (Sai)
2018-03-26 00:51:30 +09:00
committed by GitHub

View File

@@ -40,7 +40,7 @@ mainWindow.webContents.sendInputEvent({
keyCode: '\u0008'
})
if (process.platform === 'darwin' || process.env.DESKTOP_SESSION === 'cinnamon') {
if (process.platform === 'darwin') {
mainWindow.on('close', function (e) {
e.preventDefault()
if (mainWindow.isFullScreen()) {