From 9df89c7b74b9f227197d02c492c1956b56c30ff2 Mon Sep 17 00:00:00 2001 From: aAbed <39409020+TheAabedKhan@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:06:27 +0545 Subject: [PATCH] fix: Disable wakelock when patching is canceled (#1514) --- lib/ui/views/installer/installer_viewmodel.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index c8f7e8cd..01226fac 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -343,6 +343,7 @@ class InstallerViewModel extends BaseViewModel { isCanceled = true; update(0.5, 'Canceling...', 'Canceling patching process'); await _patcherAPI.stopPatcher(); + await WakelockPlus.disable(); update(-100.0, 'Canceled...', 'Press back to exit'); } on Exception catch (e) { if (kDebugMode) {