Settings: fixed faulty widget upgrade
This commit is contained in:
parent
3271fa1d23
commit
8c115b8bb0
1 changed files with 4 additions and 4 deletions
|
|
@ -105,9 +105,9 @@ Singleton {
|
|||
continue
|
||||
}
|
||||
|
||||
if (upgradeWidget(widget)) {
|
||||
Logger.log("Settings", `Upgraded ${widget.id} widget:`, JSON.stringify(widget))
|
||||
}
|
||||
// if (upgradeWidget(widget)) {
|
||||
// Logger.log("Settings", `Upgraded ${widget.id} widget:`, JSON.stringify(widget))
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -153,7 +153,7 @@ Singleton {
|
|||
continue
|
||||
}
|
||||
|
||||
if (!widget.hasOwnProperty(k)) {
|
||||
if (widget[k] === undefined) {
|
||||
widget[k] = BarWidgetRegistry.widgetMetadata[widget.id][k]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue