Fix #3485: 修复游戏 Java 路径显示错误的问题 (#3708)

This commit is contained in:
Glavo 2025-03-06 12:30:13 +08:00 committed by GitHub
parent 025bde66d6
commit 0ff194b391
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,10 +53,9 @@ public final class MultiFileItem<T> extends VBox {
setSpacing(8);
group.selectedToggleProperty().addListener((a, b, newValue) -> {
selectedData.set(newValue != null ? (T) newValue.getUserData() : null);
if (toggleSelectedListener != null)
toggleSelectedListener.accept(newValue);
selectedData.set(newValue != null ? (T) newValue.getUserData() : null);
});
selectedData.addListener((a, b, newValue) -> {
Optional<Toggle> selecting = group.getToggles().stream()