Fix threading issue in handshake rejection alert
This commit is contained in:
parent
a8aa1c9ea7
commit
be945fe3ee
@ -3,6 +3,7 @@ package envoy.client.ui.controller;
|
||||
import java.time.Instant;
|
||||
import java.util.logging.*;
|
||||
|
||||
import javafx.application.Platform;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.scene.control.*;
|
||||
@ -126,5 +127,5 @@ public final class LoginScene implements EventListener {
|
||||
}
|
||||
|
||||
@Event
|
||||
private void onHandshakeRejection(HandshakeRejection evt) { new Alert(AlertType.ERROR, evt.get()).showAndWait(); }
|
||||
private void onHandshakeRejection(HandshakeRejection evt) { Platform.runLater(() -> new Alert(AlertType.ERROR, evt.get()).showAndWait()); }
|
||||
}
|
||||
|
Reference in New Issue
Block a user