[FIX] OptionalView

This commit is contained in:
Gravita 2021-05-02 16:10:33 +07:00
parent 8ab1dda430
commit abdbf5039d

View file

@ -116,6 +116,7 @@ public void disable(OptionalFile file) {
public void enable(OptionalFile file, boolean manual, BiConsumer<OptionalFile, Boolean> callback) { public void enable(OptionalFile file, boolean manual, BiConsumer<OptionalFile, Boolean> callback) {
if(enabled.contains(file)) return; if(enabled.contains(file)) return;
enabled.add(file);
if(callback != null) callback.accept(file, true); if(callback != null) callback.accept(file, true);
OptionalFileInstallInfo installInfo = this.installInfo.get(file); OptionalFileInstallInfo installInfo = this.installInfo.get(file);
if(installInfo == null) { if(installInfo == null) {