encapsulated typeStates
This commit is contained in:
@@ -50,12 +50,7 @@ public class FinderConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean setTypeState(Finder.Type type, boolean flag) {
|
public boolean setTypeState(Finder.Type type, boolean flag) {
|
||||||
if(!this.finderProfile.getLocked()) {
|
return this.finderProfile.setTypeState(type, flag);
|
||||||
this.finderProfile.typeStates.put(type, flag);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,4 +25,10 @@ public abstract class FinderProfile {
|
|||||||
return this.locked;
|
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