fix: Disable wakelock when patching is canceled (#1514)

This commit is contained in:
aAbed 2023-11-22 19:06:27 +05:45 committed by GitHub
parent 78978276c4
commit 9df89c7b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {