Settings: fixed faulty widget upgrade

This commit is contained in:
LemmyCook 2025-09-08 08:59:30 -04:00
parent 3271fa1d23
commit 8c115b8bb0

View file

@ -105,9 +105,9 @@ Singleton {
continue continue
} }
if (upgradeWidget(widget)) { // if (upgradeWidget(widget)) {
Logger.log("Settings", `Upgraded ${widget.id} widget:`, JSON.stringify(widget)) // Logger.log("Settings", `Upgraded ${widget.id} widget:`, JSON.stringify(widget))
} // }
} }
} }
} }
@ -153,7 +153,7 @@ Singleton {
continue continue
} }
if (!widget.hasOwnProperty(k)) { if (widget[k] === undefined) {
widget[k] = BarWidgetRegistry.widgetMetadata[widget.id][k] widget[k] = BarWidgetRegistry.widgetMetadata[widget.id][k]
} }
} }