parent
5fff4023f9
commit
7f4182bfad
@ -100,7 +100,7 @@ class RootController : Controller() {
|
|||||||
println("[auto] server found")
|
println("[auto] server found")
|
||||||
con = foundServer
|
con = foundServer
|
||||||
con.ping()
|
con.ping()
|
||||||
println("auto Connection to Server successful")
|
println("[auto] Connection to Server successful")
|
||||||
switchStartupToMain()
|
switchStartupToMain()
|
||||||
showAll()
|
showAll()
|
||||||
} else {
|
} else {
|
||||||
@ -108,7 +108,7 @@ class RootController : Controller() {
|
|||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
println(e)
|
println(e)
|
||||||
println("auto Connection to Server NOT successful")
|
println("[auto] Connection to Server NOT successful")
|
||||||
}
|
}
|
||||||
if (SettingsController.serverAddressIsSet()) {
|
if (SettingsController.serverAddressIsSet()) {
|
||||||
println("[file] try connect with settings file")
|
println("[file] try connect with settings file")
|
||||||
@ -140,6 +140,17 @@ class RootController : Controller() {
|
|||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
println(e)
|
println(e)
|
||||||
println("Connection to Server NOT successful")
|
println("Connection to Server NOT successful")
|
||||||
|
|
||||||
|
Platform.runLater {
|
||||||
|
JFXInfoAlert(
|
||||||
|
"Verbinden fehlgeschlagen",
|
||||||
|
"Mögliche Ursachen:" +
|
||||||
|
"\n- der angegebene Server ist offline" +
|
||||||
|
"\n- die benötigten Ports sind nicht offen",
|
||||||
|
"-fx-button-type: RAISED; -fx-background-color: #2b7bbb; -fx-text-fill: #000000;"
|
||||||
|
).showAndWait()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user