lil fix
This commit is contained in:
@@ -53,7 +53,7 @@ public class ClientGuiController implements ClientListener {
|
||||
|
||||
@FXML
|
||||
public void initialize() throws SocketException {
|
||||
client = new Client(new InetSocketAddress("localhost", 6665), this, UsernameSingleton.getInstance().getUsername());
|
||||
client = new Client(new InetSocketAddress("192.168.163.131", 6665), this, UsernameSingleton.getInstance().getUsername());
|
||||
Platform.runLater(() -> {
|
||||
Stage stage = (Stage) vueContainer.getScene().getWindow();
|
||||
stage.setResizable(true); // Fixed a bug that made the close button disappear under my Wayland setup (don't know if it's the same for x11)
|
||||
@@ -71,7 +71,7 @@ public class ClientGuiController implements ClientListener {
|
||||
* Request the list of rooms from the server every second.
|
||||
*/
|
||||
private void requestRoomsRegularly() {
|
||||
Timeline timeline = new Timeline(new KeyFrame(Duration.seconds(1), event -> client.RequestRoomList()));
|
||||
Timeline timeline = new Timeline(new KeyFrame(Duration.seconds(10), event -> client.RequestRoomList()));
|
||||
timeline.setCycleCount(Timeline.INDEFINITE);
|
||||
timeline.play();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user