Fix: Mandatory restart was not happening

This commit is contained in:
zontreck 2024-11-23 16:37:24 -07:00
parent d64a34605c
commit 63f248f9cf
4 changed files with 14 additions and 9 deletions

View file

@ -28,7 +28,9 @@ class ModManagerState extends State<ModManager> {
M.enabled = false;
}
setState(() {});
setState(() {
settings.restartRequired = true;
});
},
icon: Icon(Icons.swipe_down)),
IconButton(
@ -37,7 +39,9 @@ class ModManagerState extends State<ModManager> {
M.enabled = true;
}
setState(() {});
setState(() {
settings.restartRequired = true;
});
},
icon: Icon(Icons.swipe_up))
],
@ -64,11 +68,10 @@ class ModManagerState extends State<ModManager> {
settings.inst!.mods[i] = settings.inst!.mods[i - 1];
}
settings.inst!.mods[newIndex] = item;
settings.restartRequired = true;
}
setState(() {
settings.Write();
settings.restartRequired = true;
});
},
itemBuilder: (ctx, idx) {