GabP404 / MyShelfie-multiplayer-game

Other
1 stars 0 forks source link

GUI: games not showing after inserting nickname #91

Closed giuseppe-steduto closed 1 year ago

giuseppe-steduto commented 1 year ago

After entering a nickname from the GUI, the list of games is not shown. After clicking on "refresh", however, the game list is updated.

matteosantelmo commented 1 year ago

The problem is due to the fact that the setAvailableGames() is called in the main execution flow, while the transition from Login scene to Lobby scene is executed using runLater( () -> ...). This cause the call of setAvailablesGame to be executed before the LobbyControllerFX is created and as a consequence the lobbies are not shown.