Fix check for default profile

This commit is contained in:
Vitaliy 2021-02-03 11:41:56 +02:00
parent 6a38b44e5f
commit 6dcde54ace

View file

@ -301,7 +301,12 @@ public class ApplicationMode {
} }
public boolean isCustomProfile() { public boolean isCustomProfile() {
return !defaultValues.contains(this); for (ApplicationMode mode : defaultValues) {
if (Algorithms.stringsEqual(mode.getStringKey(), getStringKey())) {
return false;
}
}
return true;
} }
public boolean isDerivedRoutingFrom(ApplicationMode mode) { public boolean isDerivedRoutingFrom(ApplicationMode mode) {