fix: patcher cleaning and improve patches load

This commit is contained in:
Alberto Ponces
2022-08-22 01:31:27 +01:00
parent af8e753ea6
commit ea532b294e
3 changed files with 90 additions and 77 deletions

View File

@ -95,7 +95,7 @@ class InstallerView extends StatelessWidget {
),
onWillPop: () async {
if (!model.isPatching) {
model.cleanWorkplace();
model.cleanPatcher();
Navigator.of(context).pop();
}
return false;

View File

@ -162,7 +162,7 @@ class InstallerViewModel extends BaseViewModel {
}
}
Future<void> cleanWorkplace() async {
Future<void> cleanPatcher() async {
_patcherAPI.cleanPatcher();
locator<PatcherViewModel>().selectedApp = null;
locator<PatcherViewModel>().selectedPatches.clear();