encapsulated typeStates

This commit is contained in:
Unknown
2020-02-05 18:06:07 -05:00
parent 02a61a4a68
commit fcdbd33fa2
2 changed files with 7 additions and 6 deletions
@@ -50,12 +50,7 @@ public class FinderConfig {
}
public boolean setTypeState(Finder.Type type, boolean flag) {
if(!this.finderProfile.getLocked()) {
this.finderProfile.typeStates.put(type, flag);
return true;
}
return false;
return this.finderProfile.setTypeState(type, flag);
}
}
@@ -25,4 +25,10 @@ public abstract class FinderProfile {
return this.locked;
}
public boolean setTypeState(Finder.Type type, boolean state) {
if(this.getLocked())return false;
this.typeStates.put(type, state);
return true;
}
}