From 2a68620c1fecea990633cb29fbc706bd055899ed Mon Sep 17 00:00:00 2001 From: Bruno Borges Paschoalinoto Date: Thu, 27 Jun 2024 10:56:51 -0300 Subject: [PATCH] adding metrics to gui is wip --- nastester/src/gui.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/nastester/src/gui.rs b/nastester/src/gui.rs index 25b7f63..405739b 100644 --- a/nastester/src/gui.rs +++ b/nastester/src/gui.rs @@ -621,14 +621,6 @@ impl Gui { } else if ui.button("Change to dark mode").clicked() { ctx.set_visuals(Visuals::dark()); } - // enable column metrics - if self.static_fields.show_col_metrics { - if ui.button("Hide column metrics").clicked() { - self.static_fields.show_col_metrics = false; - } - } else if ui.button("Show column metrics").clicked() { - self.static_fields.show_col_metrics = true; - } // recompute flags if ui.button("Recompute flags").clicked() { self.state.recompute_all_flagged(); @@ -1328,6 +1320,11 @@ impl Gui { &mut sf.highlight_flagged, "Highlight flagged values" ); + // highlight flagged + ui.checkbox( + &mut sf.show_col_metrics, + "Show column metrics" + ); }); if let Some(bref) = sf.block_ref { // show chosen block