fix: JavaFX Alert 失败时回退到 Swing (#6918)

This commit is contained in:
快乐凤爪王 authored and GitHub committed 2026-10-18 21:15:34 +08:00
1 parent c0ad7764b0
commit 8119324a92
1 file changed
+5
@@ -67,6 +67,11 @@ public final class CrashReporter implements Thread.UncaughtExceptionHandler {
alert.setHeaderText(i18n("message.info"));
alert.showAndWait();
} catch (Throwable t) {
try {
SwingUtils.showErrorDialog(info);
} catch (Throwable t2) {
t.addSuppressed(t2);
}
LOG.error("Unable to show message", t);
}
}