fix(dtmm): Fix the enabled checkbox in the mod list
This commit is contained in:
parent
6f8130828f
commit
acb1dbbe0f
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ fn build_mod_list() -> impl Widget<State> {
|
||||||
},
|
},
|
||||||
|state, infos| {
|
|state, infos| {
|
||||||
infos.into_iter().for_each(|(i, new, _)| {
|
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);
|
state.mods.set(i, new);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue