Skip to content

Commit

Permalink
adding metrics to gui is wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno02468 committed Jun 27, 2024
1 parent 06a7cb6 commit 2a68620
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions nastester/src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2a68620

Please sign in to comment.