Fix updateProperties not passed correctly in state wrappers
This commit is contained in:
parent
3b2f4a9c92
commit
0702207d22
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user