2025年7月7日17:26:16

master
zhangmeng 2025-07-07 17:26:20 +08:00
parent d13072c819
commit e2b534901d
1 changed files with 5 additions and 2 deletions

View File

@ -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);
});
}