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

fix incorrect app closing for linux mint cinnamon

excluded the cinnamon desktop for the macOS-like behavior which closes the window, but does not shutdown the app processes
This commit is contained in:
wAuner
2018-03-24 14:48:34 +01:00
committed by GitHub
parent 02095ac155
commit 5ee4237510

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()) {