perf: Do not load patches twice

This commit is contained in:
oSumAtrIX
2023-10-03 18:54:51 +02:00
parent 4de274bf62
commit 012110f008
3 changed files with 25 additions and 28 deletions

View File

@ -95,6 +95,8 @@ class InstallerViewModel extends BaseViewModel {
isInstalled = false;
hasErrors = false;
} else if (value == 1.0) {
_managerAPI.patches.clear();
isPatching = false;
hasErrors = false;
await _managerAPI.savePatches(