From b0917f377ebb32532e5855a94095de26203be95c Mon Sep 17 00:00:00 2001 From: Federico Lolli <federico.lolli@skywarder.eu> Date: Mon, 17 Mar 2025 17:34:44 +0100 Subject: [PATCH] Fixed issuew with labels windows using the same IDs differentiated the UIs passed to each element with scope --- src/ui/panes/pid_drawing_tool.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/panes/pid_drawing_tool.rs b/src/ui/panes/pid_drawing_tool.rs index 200a338..e8fcfa8 100644 --- a/src/ui/panes/pid_drawing_tool.rs +++ b/src/ui/panes/pid_drawing_tool.rs @@ -203,9 +203,11 @@ impl PidPane { } } - fn draw_elements(&mut self, ui: &Ui, theme: Theme) { + fn draw_elements(&mut self, ui: &mut Ui, theme: Theme) { for element in &mut self.elements { - element.draw(&self.grid, ui, theme); + ui.scope(|ui| { + element.draw(&self.grid, ui, theme); + }); } } -- GitLab