From c4a795418f80ce873d7bdf90fdb2f4f19142b079 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sat, 30 Sep 2023 21:13:32 +0200 Subject: [PATCH] fix: Move installation log to correct place --- lib/ui/views/installer/installer_viewmodel.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index 2245cab7..52318967 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -279,7 +279,6 @@ class InstallerViewModel extends BaseViewModel { ); isInstalled = await _patcherAPI.installPatchedFile(_app); if (isInstalled) { - update(1.0, 'Installed!', 'Installed!'); _app.isFromStorage = false; _app.patchDate = DateTime.now(); _app.appliedPatches = _patches.map((p) => p.name).toList(); @@ -293,6 +292,8 @@ class InstallerViewModel extends BaseViewModel { } await _managerAPI.savePatchedApp(_app); + + update(1.0, 'Installed!', 'Installed!'); } } on Exception catch (e) { if (kDebugMode) {