From acb1dbbe0f7bf5710ea0212650de6cbde92fe9e1 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Tue, 14 Mar 2023 20:39:37 +0100 Subject: [PATCH] fix(dtmm): Fix the enabled checkbox in the mod list --- crates/dtmm/src/ui/window/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/dtmm/src/ui/window/main.rs b/crates/dtmm/src/ui/window/main.rs index c8d19a8..2506810 100644 --- a/crates/dtmm/src/ui/window/main.rs +++ b/crates/dtmm/src/ui/window/main.rs @@ -126,7 +126,7 @@ fn build_mod_list() -> impl Widget { }, |state, infos| { infos.into_iter().for_each(|(i, new, _)| { - if Data::same(&state.mods.get(i).cloned(), &Some(new.clone())) { + if !Data::same(&state.mods.get(i).cloned(), &Some(new.clone())) { state.mods.set(i, new); } }); -- 2.45.3