more progress on dialogs

This commit is contained in:
Jakob Pinterits
2024-07-27 20:35:00 +02:00
parent 0da463a03a
commit 207fd68c05
5 changed files with 32 additions and 47 deletions
+4 -3
View File
@@ -385,12 +385,13 @@ export function recursivelyDeleteComponent(component: ComponentBase): void {
to_do.push(...comp.children);
// If this component had any dialogs attached, they must also go
for (let dialog of comp.ownedDialogs) {
to_do.push(dialog);
for (let dialog_container of comp.ownedDialogs) {
to_do.push(dialog_container);
// Inform Python about the destruction of the dialog
callRemoteMethodDiscardResponse('dialogRemoved', {
dialog_root_component_id: dialog.id,
owningComponentId: dialog_container.state.content,
dialogRootComponentId: dialog_container.id,
});
}