diff --git a/src/function.rs b/src/function.rs index 02d2f5c..c0fada5 100644 --- a/src/function.rs +++ b/src/function.rs @@ -206,13 +206,14 @@ impl FunctionEntry { .fixed_pos(re.rect.min.offset_y(row_height * 1.32)) .order(egui::Order::Foreground); - let mut should_remove: bool = false; - /// Function that creates button that's used with the `button_area` fn button_area_button(text: impl Into) -> Button { Button::new(text.into()).frame(false) } + // returned at the end of this function to indicate whether or not this function should be removed from where it's stored + let mut should_remove: bool = false; + buttons_area.show(ui.ctx(), |ui| { ui.horizontal(|ui| { // There's more than 1 function! Functions can now be deleted