fix(dtmm): Fix the enabled checkbox in the mod list

This commit is contained in:
Lucas Schwiderski 2023-03-14 20:39:37 +01:00
parent 6f8130828f
commit acb1dbbe0f
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -126,7 +126,7 @@ fn build_mod_list() -> impl Widget<State> {
},
|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);
}
});