fix: Don't crash installation when saving last APK is disabled (#2128)

This commit is contained in:
Benjamin
2024-08-11 08:31:18 -07:00
committed by GitHub
parent ceb9d66f17
commit 427928e542
2 changed files with 15 additions and 30 deletions

View File

@ -195,7 +195,8 @@ class InstallerViewModel extends BaseViewModel {
} else {
_app.patchedFilePath = _patcherAPI.outFile!.path;
}
locator<HomeViewModel>().initialize(context);
final homeViewModel = locator<HomeViewModel>();
_managerAPI.reAssessPatchedApps().then((_) => homeViewModel.getPatchedApps());
} on Exception catch (e) {
update(
-100.0,