aboutsummaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
Diffstat (limited to 'common/src')
-rw-r--r--common/src/main/java/dev/isxander/yacl3/impl/OptionImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/impl/OptionImpl.java b/common/src/main/java/dev/isxander/yacl3/impl/OptionImpl.java
index 37a626b..e539f73 100644
--- a/common/src/main/java/dev/isxander/yacl3/impl/OptionImpl.java
+++ b/common/src/main/java/dev/isxander/yacl3/impl/OptionImpl.java
@@ -45,11 +45,12 @@ public final class OptionImpl<T> implements Option<T> {
this.available = available;
this.flags = flags;
this.listeners = new ArrayList<>(listeners);
+
+ this.pendingValue = binding.getValue();
this.controller = controlGetter.apply(this);
addListener((opt, pending) -> description = descriptionFunction.apply(pending));
-
- requestSet(binding().getValue());
+ triggerListeners(true);
}
@Override