fix: return fetched patch version if non default patch repo is used (#922)

This commit is contained in:
fe 2023-06-07 19:16:25 +02:00 committed by GitHub
parent c24a3828be
commit f6e99f7e88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,13 +300,12 @@ class ManagerAPI {
if (isDefaultPatchesRepo()) {
patchesVersion = await getLatestPatchesVersion();
// print('Patches version: $patchesVersion');
return patchesVersion ?? '0.0.0';
} else {
// fetch from github
patchesVersion =
await _githubAPI.getLastestReleaseVersion(getPatchesRepo());
}
return null;
return patchesVersion ?? '0.0.0';
}
Future<List<PatchedApplication>> getAppsToRemove(