Skip to content

Commit

Permalink
enhance: show/hide the Zero checkbox according the the data too
Browse files Browse the repository at this point in the history
  • Loading branch information
carrascomj committed Oct 31, 2023
1 parent 45c78f8 commit e36ff7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ pub fn ui_settings(
}
}

ui.checkbox(&mut state.zero_white, "Zero as white");
if active_set.get("Reaction") | active_set.get("Metabolite") {
ui.checkbox(&mut state.zero_white, "Zero as white");
}

if let Some(first_cond) = state.conditions.first() {
if !((first_cond.is_empty()) & (state.conditions.len() == 1)) {
Expand Down

0 comments on commit e36ff7f

Please sign in to comment.