mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: broken settings page
This commit is contained in:
parent
9df6d52e2d
commit
d6169c6fa2
@ -111,17 +111,6 @@ class ManagerAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool isPatchesChangeEnabled() {
|
bool isPatchesChangeEnabled() {
|
||||||
if (getPatchedApps().isNotEmpty && !isChangingToggleModified()) {
|
|
||||||
for (final apps in getPatchedApps()) {
|
|
||||||
if (getSavedPatches(apps.originalPackageName)
|
|
||||||
.indexWhere((patch) => patch.excluded) !=
|
|
||||||
-1) {
|
|
||||||
setPatchesChangeWarning(false);
|
|
||||||
setPatchesChangeEnabled(true);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return _prefs.getBool('patchesChangeEnabled') ?? false;
|
return _prefs.getBool('patchesChangeEnabled') ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user