Skip to content

Commit d69d27a

Browse files
CiiLuGlavo
andauthored
修复导出游戏崩溃信息后弹窗没有正常弹出的问题 (#4624)
Co-authored-by: Glavo <[email protected]>
1 parent f9a39f1 commit d69d27a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

HMCL/src/main/java/org/jackhuang/hmcl/ui/GameCrashWindow.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@
4141
import org.jackhuang.hmcl.task.Schedulers;
4242
import org.jackhuang.hmcl.task.Task;
4343
import org.jackhuang.hmcl.ui.construct.TwoLineListItem;
44-
import org.jackhuang.hmcl.util.*;
45-
import org.jackhuang.hmcl.util.logging.Logger;
44+
import org.jackhuang.hmcl.util.Lang;
45+
import org.jackhuang.hmcl.util.Log4jLevel;
46+
import org.jackhuang.hmcl.util.Pair;
47+
import org.jackhuang.hmcl.util.StringUtils;
4648
import org.jackhuang.hmcl.util.io.FileUtils;
49+
import org.jackhuang.hmcl.util.logging.Logger;
4750
import org.jackhuang.hmcl.util.platform.*;
4851

4952
import java.io.IOException;
@@ -59,9 +62,9 @@
5962
import java.util.stream.Collectors;
6063

6164
import static org.jackhuang.hmcl.util.DataSizeUnit.MEGABYTES;
62-
import static org.jackhuang.hmcl.util.logging.Logger.LOG;
6365
import static org.jackhuang.hmcl.util.Pair.pair;
6466
import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
67+
import static org.jackhuang.hmcl.util.logging.Logger.LOG;
6568

6669
public class GameCrashWindow extends Stage {
6770
private final Version version;
@@ -283,7 +286,7 @@ private void exportGameCrashInfo() {
283286
alert.showAndWait();
284287

285288
return null;
286-
});
289+
}, Schedulers.javafx());
287290
}
288291

289292
private final class View extends VBox {

0 commit comments

Comments
 (0)