Fix process not cleanly exiting when it was supposed to

This commit is contained in:
zontreck 2024-06-05 20:28:19 -07:00
parent 26434a9123
commit 6574888344
4 changed files with 32 additions and 7 deletions

View file

@ -21,6 +21,26 @@ class ModManagerState extends State<ModManager> {
appBar: AppBar(
title: Text("Conan Exiles Server Manager - Mod Manager"),
backgroundColor: Color.fromARGB(255, 100, 0, 0),
actions: [
IconButton(
onPressed: () {
for (Mod M in settings.inst!.mods) {
M.enabled = false;
}
setState(() {});
},
icon: Icon(Icons.swipe_down)),
IconButton(
onPressed: () {
for (Mod M in settings.inst!.mods) {
M.enabled = true;
}
setState(() {});
},
icon: Icon(Icons.swipe_up))
],
),
body: ReorderableListView.builder(
onReorder: (oldIndex, newIndex) {