From cb5682ae6c312b62a0c18eea64cb8f5c5dbb7bca Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 20 Apr 2022 10:01:59 -0400 Subject: [PATCH] add comment --- src/function.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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