crash dialog: auto-close 1.2s after successful send to server

This commit is contained in:
SashegDev
2026-08-19 21:21:49 +00:00
parent 566559d639
commit 943211314e
@@ -1052,6 +1052,13 @@ public class Bootstrap {
statusLabel.setForeground(new Color(0x45, 0xe9, 0x60));
statusLabel.setText("Crash report sent. Thank you!");
sendBtn.setText("Sent");
new Thread(() -> {
try { Thread.sleep(1200); } catch (InterruptedException ignored) {}
SwingUtilities.invokeLater(() -> {
frame.dispose();
System.exit(exitCode);
});
}).start();
} else {
statusLabel.setForeground(accentColor);
statusLabel.setText("Failed to send. Check logs folder.");