Fix updateProperties not passed correctly in state wrappers

This commit is contained in:
david-swift 2024-06-30 08:34:30 +02:00
parent 3b2f4a9c92
commit 0702207d22

View File

@ -57,7 +57,7 @@ public struct StateWrapper: ConvenienceWidget {
updateProperties: Bool, updateProperties: Bool,
type: WidgetType.Type type: WidgetType.Type
) { ) {
var updateProperties = storage.fields[updateID] as? Bool ?? false var updateProperties = updateProperties ? true : (storage.fields[updateID] as? Bool ?? false)
storage.fields[updateID] = false storage.fields[updateID] = false
for property in state { for property in state {
if let oldID = storage.state[property.key]?.id { if let oldID = storage.state[property.key]?.id {