fix: javafx bound property
This commit is contained in:
@@ -178,8 +178,8 @@ public class DecoratorSkin extends SkinBase<Decorator> {
|
|||||||
navBarPane.getChildren().setAll(node);
|
navBarPane.getChildren().setAll(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
leftPane.prefWidthProperty().unbind();
|
||||||
if (s.getLeftPaneWidth() >= 0) {
|
if (s.getLeftPaneWidth() >= 0) {
|
||||||
leftPane.prefWidthProperty().unbind();
|
|
||||||
FXUtils.playAnimation(leftPane, "animation",
|
FXUtils.playAnimation(leftPane, "animation",
|
||||||
s.isAnimate() ? Duration.millis(160) : null, leftPane.prefWidthProperty(), null, s.getLeftPaneWidth(), FXUtils.SINE);
|
s.isAnimate() ? Duration.millis(160) : null, leftPane.prefWidthProperty(), null, s.getLeftPaneWidth(), FXUtils.SINE);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.jackhuang.hmcl.download;
|
package org.jackhuang.hmcl.download;
|
||||||
|
|
||||||
|
import org.jackhuang.hmcl.download.fabric.FabricAPIVersionList;
|
||||||
import org.jackhuang.hmcl.download.fabric.FabricVersionList;
|
import org.jackhuang.hmcl.download.fabric.FabricVersionList;
|
||||||
import org.jackhuang.hmcl.download.forge.ForgeBMCLVersionList;
|
import org.jackhuang.hmcl.download.forge.ForgeBMCLVersionList;
|
||||||
import org.jackhuang.hmcl.download.game.GameVersionList;
|
import org.jackhuang.hmcl.download.game.GameVersionList;
|
||||||
@@ -31,6 +32,7 @@ public class BMCLAPIDownloadProvider implements DownloadProvider {
|
|||||||
private final String apiRoot;
|
private final String apiRoot;
|
||||||
private final GameVersionList game;
|
private final GameVersionList game;
|
||||||
private final FabricVersionList fabric;
|
private final FabricVersionList fabric;
|
||||||
|
private final FabricAPIVersionList fabricApi;
|
||||||
private final ForgeBMCLVersionList forge;
|
private final ForgeBMCLVersionList forge;
|
||||||
private final LiteLoaderBMCLVersionList liteLoader;
|
private final LiteLoaderBMCLVersionList liteLoader;
|
||||||
private final OptiFineBMCLVersionList optifine;
|
private final OptiFineBMCLVersionList optifine;
|
||||||
@@ -39,6 +41,7 @@ public class BMCLAPIDownloadProvider implements DownloadProvider {
|
|||||||
this.apiRoot = apiRoot;
|
this.apiRoot = apiRoot;
|
||||||
this.game = new GameVersionList(this);
|
this.game = new GameVersionList(this);
|
||||||
this.fabric = new FabricVersionList(this);
|
this.fabric = new FabricVersionList(this);
|
||||||
|
this.fabricApi = new FabricAPIVersionList(this);
|
||||||
this.forge = new ForgeBMCLVersionList(apiRoot);
|
this.forge = new ForgeBMCLVersionList(apiRoot);
|
||||||
this.liteLoader = new LiteLoaderBMCLVersionList(this);
|
this.liteLoader = new LiteLoaderBMCLVersionList(this);
|
||||||
this.optifine = new OptiFineBMCLVersionList(apiRoot);
|
this.optifine = new OptiFineBMCLVersionList(apiRoot);
|
||||||
@@ -65,6 +68,8 @@ public class BMCLAPIDownloadProvider implements DownloadProvider {
|
|||||||
return game;
|
return game;
|
||||||
case "fabric":
|
case "fabric":
|
||||||
return fabric;
|
return fabric;
|
||||||
|
case "fabric-api":
|
||||||
|
return fabricApi;
|
||||||
case "forge":
|
case "forge":
|
||||||
return forge;
|
return forge;
|
||||||
case "liteloader":
|
case "liteloader":
|
||||||
|
|||||||
Reference in New Issue
Block a user