Fix file dialog children updates not working

This was reported in https://forums.aparoksha.dev/d/5-at-state-and-fileexporter-dont-like-each-other
This commit is contained in:
david-swift 2025-03-23 11:06:32 +01:00
parent f89b44cee6
commit 90349fd435

View File

@ -89,7 +89,7 @@ public struct FileDialog: AdwaitaWidget {
guard let mainStorage = storage.content[.mainContent]?.first else {
return
}
child.updateStorage(storage, data: data, updateProperties: updateProperties, type: type)
child.updateStorage(mainStorage, data: data, updateProperties: updateProperties, type: type)
if open.update, storage.fields["callbacks"] == nil {
var unref: [OpaquePointer?] = []
let pointer = gtk_file_dialog_new()