fix(custom-sources): ignore casing when checking if default repo is being used (#1281)

This commit is contained in:
Julienraptor01 2023-09-20 23:42:29 +02:00 committed by GitHub
parent 4cdd9acd73
commit 9ad1d6cbfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,11 +41,11 @@ class ManagerAPI {
String? patchesVersion = ''; String? patchesVersion = '';
String? integrationsVersion = ''; String? integrationsVersion = '';
bool isDefaultPatchesRepo() { bool isDefaultPatchesRepo() {
return getPatchesRepo() == 'revanced/revanced-patches'; return getPatchesRepo().toLowerCase() == 'revanced/revanced-patches';
} }
bool isDefaultIntegrationsRepo() { bool isDefaultIntegrationsRepo() {
return getIntegrationsRepo() == 'revanced/revanced-integrations'; return getIntegrationsRepo().toLowerCase() == 'revanced/revanced-integrations';
} }
Future<void> initialize() async { Future<void> initialize() async {