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(); ex.printStackTrace();
} }
} }
CompletableFuture<String> future = CompletableFuture.supplyAsync(() -> { CompletableFuture<String> future = CompletableFuture.supplyAsync(() -> {
try { try {
load_bucket_list(); load_bucket_list();
@ -414,10 +413,14 @@ public class MinioController {
alert.initModality(Modality.APPLICATION_MODAL); alert.initModality(Modality.APPLICATION_MODAL);
alert.setContentText("正在尝试连接服务器..."); alert.setContentText("正在尝试连接服务器...");
alert.setHeaderText(null); alert.setHeaderText(null);
// 去掉右上角的关闭按钮
alert.setOnCloseRequest(event -> alert.close());
alert.show(); alert.show();
future.whenComplete((result, ex) -> { future.whenComplete((result, ex) -> {
Platform.runLater(alert::close); Platform.runLater(alert::close);
}); });
} }