Skip to content

Commit

Permalink
fix: Disable wakelock when patching is canceled (#1514)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAabedKhan committed Nov 22, 2023
1 parent 7897827 commit 9df89c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ui/views/installer/installer_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9df89c7

Please sign in to comment.