mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-07 04:43:52 +01:00
fixes #1006 Through close event when platform is darwin
This commit is contained in:
parent
4fe6949255
commit
5c36b47f23
@ -251,7 +251,6 @@ async function createWindow() {
|
|||||||
mainWindow!.setSkipTaskbar(false)
|
mainWindow!.setSkipTaskbar(false)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
|
||||||
|
|
||||||
// Minimize to tray
|
// Minimize to tray
|
||||||
mainWindow!.on('close', event => {
|
mainWindow!.on('close', event => {
|
||||||
@ -259,6 +258,7 @@ async function createWindow() {
|
|||||||
mainWindow!.setSkipTaskbar(true)
|
mainWindow!.setSkipTaskbar(true)
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not lower the rendering priority of Chromium when background
|
// Do not lower the rendering priority of Chromium when background
|
||||||
|
Loading…
x
Reference in New Issue
Block a user