From abdbf5039d90b8e3764d675c53489dcd85d6b5f6 Mon Sep 17 00:00:00 2001 From: Gravita Date: Sun, 2 May 2021 16:10:33 +0700 Subject: [PATCH] [FIX] OptionalView --- .../java/pro/gravit/launcher/profiles/optional/OptionalView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/optional/OptionalView.java b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/optional/OptionalView.java index b21080d7..66f4cf9a 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/optional/OptionalView.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/optional/OptionalView.java @@ -116,6 +116,7 @@ public void disable(OptionalFile file) { public void enable(OptionalFile file, boolean manual, BiConsumer callback) { if(enabled.contains(file)) return; + enabled.add(file); if(callback != null) callback.accept(file, true); OptionalFileInstallInfo installInfo = this.installInfo.get(file); if(installInfo == null) {