fix: Reset progress if patch was cancelled

This commit is contained in:
oSumAtrIX 2023-12-23 22:19:56 +01:00
parent ca95e32164
commit 850bdc4a4d
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -115,6 +115,7 @@ class InstallerViewModel extends BaseViewModel {
} else if (value == -100.0) { } else if (value == -100.0) {
isPatching = false; isPatching = false;
hasErrors = true; hasErrors = true;
progress = 0.0;
} }
if (header.isNotEmpty) { if (header.isNotEmpty) {
headerLogs = header; headerLogs = header;