Fix cannot set property 'enabled' of undefined (#1938)
This commit is contained in:
parent
e9fa721ca8
commit
5f5e4e0ee2
2 changed files with 2 additions and 1 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue