Fix check for default profile
This commit is contained in:
parent
6a38b44e5f
commit
6dcde54ace
1 changed files with 6 additions and 1 deletions
|
@ -301,7 +301,12 @@ public class ApplicationMode {
|
|||
}
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue