mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
added runlater to snackback
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package seng302.discoveryServer;
|
package seng302.discoveryServer;
|
||||||
|
|
||||||
|
import javafx.application.Platform;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import seng302.discoveryServer.util.ServerListing;
|
import seng302.discoveryServer.util.ServerListing;
|
||||||
@@ -41,7 +42,10 @@ public class DiscoveryServerClient {
|
|||||||
|
|
||||||
private void failError() {
|
private void failError() {
|
||||||
isInInvalidState = true;
|
isInInvalidState = true;
|
||||||
|
Platform.runLater(() -> {
|
||||||
ViewManager.getInstance().showErrorSnackBar("You do not appear to be able to connect to the internet. Matchmaking will be unavailable.");
|
ViewManager.getInstance().showErrorSnackBar("You do not appear to be able to connect to the internet. Matchmaking will be unavailable.");
|
||||||
|
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean didFail(){
|
public boolean didFail(){
|
||||||
|
|||||||
Reference in New Issue
Block a user