Remove message deferral for text creation (#2978)

* Remove message deferral for text creation

* Restructure Trigger Navigation ready to not hijack the PTZ Update
This commit is contained in:
Dennis Kobert
2025-08-03 16:06:30 +02:00
committed by GitHub
parent a0ce56d9b6
commit 7fcdad1f88
3 changed files with 22 additions and 33 deletions
@@ -1436,20 +1436,6 @@ impl MessageHandler<DocumentMessage, DocumentMessageContext<'_>> for DocumentMes
},
})
}
// Some parts of the editior (e.g. navigation messages) depend on these bounds to be present
let bounds = if self.graph_view_overlay_open {
self.network_interface.all_nodes_bounding_box(&self.breadcrumb_network_path).cloned()
} else {
self.network_interface.document_bounds_document_space(true)
};
if bounds.is_some() {
responses.add(DeferMessage::TriggerNavigationReady);
} else {
// If we don't have bounds yet, we need wait until the node graph has run once more
responses.add(DeferMessage::AfterGraphRun {
messages: vec![DocumentMessage::PTZUpdate.into()],
});
}
}
DocumentMessage::SelectionStepBack => {
self.network_interface.selection_step_back(&self.selection_network_path);