fix: broken settings page

This commit is contained in:
aAbed 2023-08-27 11:55:21 +05:45 committed by GitHub
parent 9df6d52e2d
commit d6169c6fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }