Fix #3456 在更新预览界面没法拖动启动器窗口 (#3464)

This commit is contained in:
Burning_TNT
2024-12-10 16:20:02 +08:00
committed by GitHub
parent 8460df7d5d
commit 981b55a10e

View File

@@ -41,6 +41,9 @@ import static org.jackhuang.hmcl.util.logging.Logger.LOG;
public final class UpgradeDialog extends JFXDialogLayout {
public UpgradeDialog(RemoteVersion remoteVersion, Runnable updateRunnable) {
maxWidthProperty().bind(Controllers.getScene().widthProperty().multiply(0.7));
maxHeightProperty().bind(Controllers.getScene().heightProperty().multiply(0.7));
setHeading(new Label(i18n("update.changelog")));
setBody(new ProgressIndicator());