fix: JavaFX Alert 失败时回退到 Swing (#6918)
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user