Skip to content

Commit

Permalink
Fix displaying "Clean modules folder" for GP version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedsh committed Sep 8, 2021
1 parent 3f08978 commit 570ac39
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ private void removePreferencesWithGPVersion() {
categories.add(findPreference("pref_dnscrypt_blacklist"));
categories.add(findPreference("pref_dnscrypt_ipblacklist"));
categories.add(findPreference("pref_dnscrypt_whitelist"));
categories.add(findPreference("pref_dnscrypt_other"));

for (PreferenceCategory category : categories) {
if (dnscryptSettings != null && category != null) {
Expand All @@ -589,6 +588,13 @@ private void removePreferencesWithGPVersion() {
if (queryLogCategory != null && ignoredQtypes != null) {
queryLogCategory.removePreference(ignoredQtypes);
}

PreferenceCategory otherCategory = findPreference("pref_dnscrypt_other");
Preference editDNSTomlDirectly = findPreference("editDNSTomlDirectly");

if (otherCategory != null && editDNSTomlDirectly != null) {
otherCategory.removePreference(editDNSTomlDirectly);
}
}

private void checkRootDirAccessible() {
Expand Down

0 comments on commit 570ac39

Please sign in to comment.