crash dialog: auto-close 1.2s after successful send to server
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user