Fix cannot set property 'enabled' of undefined (#1938)
This commit is contained in:
@@ -81,9 +81,9 @@ function init () {
|
||||
isReady = true
|
||||
const state = results.state
|
||||
|
||||
menu.init()
|
||||
windows.main.init(state, { hidden })
|
||||
windows.webtorrent.init()
|
||||
menu.init()
|
||||
|
||||
// To keep app startup fast, some code is delayed.
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -74,6 +74,7 @@ function getMenuItem (label) {
|
||||
})
|
||||
if (menuItem) return menuItem
|
||||
}
|
||||
return {}
|
||||
}
|
||||
|
||||
function getMenuTemplate () {
|
||||
|
||||
Reference in New Issue
Block a user