From 13b3dfa905641f98b1082547b0ecc5b307740d34 Mon Sep 17 00:00:00 2001 From: CiiLu <109708109+CiiLu@users.noreply.github.com> Date: Sun, 6 Sep 2026 11:57:27 +0800 Subject: [PATCH] =?UTF-8?q?<18>=20=E7=AC=94=E7=AB=AF=E6=B8=85=E5=85=89?= =?UTF-8?q?=E7=BB=9D=20=E8=87=AA=E5=98=B2=E4=B8=8D=E7=9F=A5=E5=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jackhuang/hmcl/ui/construct/DialogPane.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/DialogPane.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/DialogPane.java index 0a2e9228d87..2154697c9a7 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/DialogPane.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/DialogPane.java @@ -19,15 +19,11 @@ import com.jfoenix.controls.JFXButton; import com.jfoenix.controls.JFXDialogLayout; -import com.jfoenix.controls.JFXProgressBar; import javafx.beans.property.BooleanProperty; import javafx.beans.property.SimpleBooleanProperty; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; -import javafx.geometry.Insets; -import javafx.geometry.Pos; import javafx.scene.control.Label; -import javafx.scene.layout.StackPane; import static org.jackhuang.hmcl.ui.FXUtils.onEscPressed; import static org.jackhuang.hmcl.util.i18n.I18n.i18n; @@ -38,18 +34,11 @@ public class DialogPane extends JFXDialogLayout { protected final SpinnerPane acceptPane = new SpinnerPane(); protected final JFXButton cancelButton = new JFXButton(); protected final Label warningLabel = new Label(); - private final JFXProgressBar progressBar = new JFXProgressBar(); public DialogPane() { Label titleLabel = new Label(); titleLabel.textProperty().bind(title); setHeading(titleLabel); - getChildren().add(progressBar); - - progressBar.setVisible(false); - StackPane.setMargin(progressBar, new Insets(-24.0D, -24.0D, -16.0D, -24.0D)); - StackPane.setAlignment(progressBar, Pos.TOP_CENTER); - progressBar.setMaxWidth(Double.MAX_VALUE); JFXButton acceptButton = new JFXButton(i18n("button.ok")); acceptButton.setOnAction(e -> onAccept()); @@ -66,10 +55,6 @@ public DialogPane() { setActions(warningLabel, acceptPane, cancelButton); } - protected JFXProgressBar getProgressBar() { - return progressBar; - } - public String getTitle() { return title.get(); }