mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Removed loading widget from Server.java
This commit is contained in:
@@ -76,9 +76,6 @@ public final class Server {
|
||||
|
||||
final int reconnectAttempts = 10;
|
||||
|
||||
LoadingWidget loading = new LoadingWidget(0, reconnectAttempts);
|
||||
loading.show(Pos.CENTER);
|
||||
|
||||
var a = new EventFlow()
|
||||
.addPostEvent(NetworkEvents.StartClient.class,
|
||||
new TournamentNetworkingClient(),
|
||||
@@ -89,7 +86,6 @@ public final class Server {
|
||||
|
||||
a.unsubscribe("startclient");
|
||||
|
||||
loading.hide();
|
||||
this.user = user;
|
||||
clientId = e.clientId();
|
||||
|
||||
@@ -101,11 +97,8 @@ public final class Server {
|
||||
startPopulateScheduler();
|
||||
populateGameList();
|
||||
}, false, "startclient").listen(NetworkEvents.ConnectTry.class, e -> {
|
||||
Platform.runLater(() -> loading.setAmount(e.amount()));
|
||||
// Platform.runLater(() -> loading.setAmount(e.amount()));
|
||||
}).postEvent();
|
||||
|
||||
new EventFlow().listen(this::handleReceivedChallenge)
|
||||
.listen(this::handleMatchResponse);
|
||||
}
|
||||
|
||||
private void sendChallenge(String opponent) {
|
||||
|
||||
Reference in New Issue
Block a user