git.lucas.co / cce-graph
node-based graph editor
git clone https://git.lucas.co/cce-graph.git

commitd9ebc938f26c491a7ec202514542579f6699801f
parent0db31c3896
authorLucas Galante <[email protected]>
date2026-07-03 18:06
fix: implement ui_context_mut on GraphApp to allow syncing key modifier state

 src/main.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main.rs b/src/main.rs
index 88cc9cb..a3f0ca7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -380,6 +380,10 @@ impl Application for GraphApp {
         Some(&self.ui_context)
     }
 
+    fn ui_context_mut(&mut self) -> Option<&mut cce_ui::context::UiContext> {
+        Some(&mut self.ui_context)
+    }
+
     fn new(_qh: &QueueHandle<EngineState<Self>>, _sender: calloop::channel::Sender<Self::Message>) -> Self {
         let mut graph = Graph::new();