mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: return fetched patch version if non default patch repo is used (#922)
This commit is contained in:
parent
c24a3828be
commit
f6e99f7e88
@ -300,13 +300,12 @@ class ManagerAPI {
|
|||||||
if (isDefaultPatchesRepo()) {
|
if (isDefaultPatchesRepo()) {
|
||||||
patchesVersion = await getLatestPatchesVersion();
|
patchesVersion = await getLatestPatchesVersion();
|
||||||
// print('Patches version: $patchesVersion');
|
// print('Patches version: $patchesVersion');
|
||||||
return patchesVersion ?? '0.0.0';
|
|
||||||
} else {
|
} else {
|
||||||
// fetch from github
|
// fetch from github
|
||||||
patchesVersion =
|
patchesVersion =
|
||||||
await _githubAPI.getLastestReleaseVersion(getPatchesRepo());
|
await _githubAPI.getLastestReleaseVersion(getPatchesRepo());
|
||||||
}
|
}
|
||||||
return null;
|
return patchesVersion ?? '0.0.0';
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<List<PatchedApplication>> getAppsToRemove(
|
Future<List<PatchedApplication>> getAppsToRemove(
|
||||||
|
Loading…
Reference in New Issue
Block a user