diff --git a/src/gui_egui/components/constant.rs b/src/gui_egui/components/constant.rs index 88a70186..4dfc063c 100644 --- a/src/gui_egui/components/constant.rs +++ b/src/gui_egui/components/constant.rs @@ -24,7 +24,7 @@ impl EguiComponent for Constant { let mut offset = offset; offset.x += self.pos.0 * scale; offset.y += self.pos.1 * scale; - let area = Area::new(self.id.to_string()) + let area = Area::new(egui::Id::from(self.id.to_string())) .order(Order::Middle) .current_pos(offset.to_pos2()) .movable(false) diff --git a/src/gui_egui/components/probe.rs b/src/gui_egui/components/probe.rs index 848171ad..f5b0dbe3 100644 --- a/src/gui_egui/components/probe.rs +++ b/src/gui_egui/components/probe.rs @@ -29,7 +29,7 @@ impl EguiComponent for Probe { Some(s) => s.get_input_value(&input), None => SignalValue::Uninitialized, }; - let area = Area::new(self.id.to_string()) + let area = Area::new(egui::Id::from(self.id.to_string())) .order(Order::Middle) .current_pos(offset.to_pos2()) .movable(false) diff --git a/src/gui_egui/components/probe_edit.rs b/src/gui_egui/components/probe_edit.rs index cadead9b..27288b07 100644 --- a/src/gui_egui/components/probe_edit.rs +++ b/src/gui_egui/components/probe_edit.rs @@ -25,7 +25,7 @@ impl EguiComponent for ProbeEdit { offset.x += self.pos.0 * scale; offset.y += self.pos.1 * scale; let interact = matches!(editor_mode, EditorMode::Simulator); - let area = Area::new(self.id.to_string()) + let area = Area::new(egui::Id::from(self.id.to_string())) .order(Order::Middle) .current_pos(offset.to_pos2()) .movable(false)