2025年7月7日17:26:16
parent
d13072c819
commit
e2b534901d
|
|
@ -400,7 +400,6 @@ public class MinioController {
|
|||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
CompletableFuture<String> future = CompletableFuture.supplyAsync(() -> {
|
||||
try {
|
||||
load_bucket_list();
|
||||
|
|
@ -414,10 +413,14 @@ public class MinioController {
|
|||
alert.initModality(Modality.APPLICATION_MODAL);
|
||||
alert.setContentText("正在尝试连接服务器...");
|
||||
alert.setHeaderText(null);
|
||||
|
||||
// 去掉右上角的关闭按钮
|
||||
alert.setOnCloseRequest(event -> alert.close());
|
||||
|
||||
alert.show();
|
||||
|
||||
future.whenComplete((result, ex) -> {
|
||||
Platform.runLater(alert::close);
|
||||
Platform.runLater(alert::close);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue