Only update alert dialog's extra child if visible
Some checks failed
Deploy Docs / publish (push) Failing after 25s
SwiftLint / SwiftLint (push) Successful in 5s

This commit is contained in:
david-swift 2025-01-24 18:11:37 +01:00
parent 5613ce13cd
commit f89b44cee6

View File

@ -125,7 +125,7 @@ public struct AlertDialog: AdwaitaWidget {
) where Data: ViewRenderData {
storage.fields[Self.visibleID + id] = _visible
child.updateStorage(storage, data: data, updateProperties: updateProperties, type: type)
if let storage = storage.content["extra-child"]?.first {
if let storage = storage.content["extra-child"]?.first, visible {
extraChild?.updateStorage(storage, data: data, updateProperties: updateProperties, type: type)
}
guard updateProperties else {