1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00
This commit is contained in:
Dick Choi
2016-10-17 07:10:00 +09:00
parent 00f1c62646
commit f9598dd619
2 changed files with 6 additions and 2 deletions

View File

@@ -34,7 +34,11 @@ mainWindow.webContents.sendInputEvent({
if (process.platform !== 'linux' || process.env.DESKTOP_SESSION === 'cinnamon') {
mainWindow.on('close', function (e) {
mainWindow.hide()
if (process.platform === 'win32') {
mainWindow.minimize()
} else {
mainWindow.hide()
}
e.preventDefault()
})