This commit is contained in:
Clément
2025-03-13 10:03:26 +01:00
parent a4c5d3f67b
commit eee63cc5c6
2 changed files with 4 additions and 4 deletions

View File

@@ -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();
}