From e36ff7f7d27149c7f411d07bce3d1d1eb0aa7772 Mon Sep 17 00:00:00 2001 From: carrascomj Date: Tue, 31 Oct 2023 15:38:53 +0100 Subject: [PATCH] enhance: show/hide the Zero checkbox according the the data too --- src/gui.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui.rs b/src/gui.rs index 12ee045..a583a8f 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -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)) {