Merge pull request 'fix(dtmm): Fix the enabled checkbox in the mod list' (#67) from fix/enabled-checkbox into master

Reviewed-on: #67
This commit is contained in:
Lucas Schwiderski 2023-03-14 20:40:21 +01:00
commit 882000fce6

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);
}
});