Code style
This commit is contained in:
parent
16e70e553a
commit
0041c385bc
14
main.js
14
main.js
|
@ -82,14 +82,12 @@ function createWindow () {
|
|||
|
||||
// Handle shutdown event on Mac with minimizeOnClose
|
||||
// to prevent shutdown interrupt
|
||||
if (isMac) {
|
||||
if (minimizeOnClose) {
|
||||
const { powerMonitor } = require('electron')
|
||||
powerMonitor.on('shutdown', () => {
|
||||
app.isQuitting = true
|
||||
app.quit()
|
||||
})
|
||||
}
|
||||
if (isMac && minimizeOnClose) {
|
||||
const { powerMonitor } = require('electron')
|
||||
powerMonitor.on('shutdown', () => {
|
||||
app.isQuitting = true
|
||||
app.quit()
|
||||
})
|
||||
}
|
||||
|
||||
// Save window size
|
||||
|
|
Loading…
Reference in New Issue