main: init app menu on ready event to fix macOs menus & shortcuts -> 0.24.2
This commit is contained in:
parent
d4c7b868fe
commit
37b095844e
5 changed files with 19 additions and 18 deletions
|
|
@ -37,16 +37,10 @@ var start = function(readyApp) {
|
|||
address += settings.read('urlOptions')
|
||||
if (app.isReady()) {
|
||||
var win = require('./electron-window')({address:address, shortcuts:true})
|
||||
app.on('before-quit',()=>{
|
||||
process.exit()
|
||||
})
|
||||
return win
|
||||
} else {
|
||||
app.on('ready',function(){
|
||||
var win = require('./electron-window')({address:address, shortcuts:true})
|
||||
app.on('before-quit',()=>{
|
||||
process.exit()
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue