Only update alert dialog's extra child if visible
This commit is contained in:
parent
5613ce13cd
commit
f89b44cee6
@ -125,7 +125,7 @@ public struct AlertDialog: AdwaitaWidget {
|
|||||||
) where Data: ViewRenderData {
|
) where Data: ViewRenderData {
|
||||||
storage.fields[Self.visibleID + id] = _visible
|
storage.fields[Self.visibleID + id] = _visible
|
||||||
child.updateStorage(storage, data: data, updateProperties: updateProperties, type: type)
|
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)
|
extraChild?.updateStorage(storage, data: data, updateProperties: updateProperties, type: type)
|
||||||
}
|
}
|
||||||
guard updateProperties else {
|
guard updateProperties else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user