encapsulated typeStates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user