Skip to content

Commit c515dbe

Browse files
authored
Merge pull request CinemaMod#77 from DerSimeon/feature/use-cache-setter
Added a Setter for the useCache flag
2 parents 2848429 + b32a27e commit c515dbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

common/src/main/java/com/cinemamod/mcef/MCEFSettings.java

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ public boolean isUsingCache() {
8181
return useCache;
8282
}
8383

84+
public void setUseCache(boolean useCache) {
85+
this.useCache = useCache;
86+
saveAsync();
87+
}
88+
8489
public void saveAsync() {
8590
CompletableFuture.runAsync(() -> {
8691
try {

0 commit comments

Comments
 (0)