Fix #3999: 自动安装更改 MC 版本后无法点击安装键 (#4001)

This commit is contained in:
Burning_TNT 2025-06-14 21:12:59 +08:00 committed by GitHub
parent c70a6c3372
commit fa8b3a952b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,7 @@
*/
package org.jackhuang.hmcl.ui.download;
import javafx.beans.binding.Bindings;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import org.jackhuang.hmcl.download.DownloadProvider;
@ -58,6 +59,8 @@ class AdditionalInstallersPage extends AbstractInstallersPage {
reload();
});
}
installable.bind(Bindings.createBooleanBinding(() -> compatible.get() && txtName.validate(), txtName.textProperty(), compatible));
}
@Override