Fix #42, dont load IP from File, if auto-connected

This commit is contained in:
CodeSteak 2019-06-14 11:28:43 +02:00
parent 9444e8198f
commit 7da58c7dbe
1 changed files with 6 additions and 0 deletions

View File

@ -103,6 +103,8 @@ class RootController : Controller() {
println("[auto] Connection to Server successful")
switchStartupToMain()
showAll()
return // abort
} else {
println("[auto] no server found")
}
@ -119,6 +121,8 @@ class RootController : Controller() {
println("[file] Connection to Server successful")
switchStartupToMain()
showAll()
return // abort
} catch (e: Exception) {
println(e)
println("[file] Connection to Server NOT successful")
@ -137,6 +141,8 @@ class RootController : Controller() {
switchStartupToMain()
showAll()
println("swithing to MainView @ initCon")
return // abort
} catch (e: Exception) {
println(e)
println("Connection to Server NOT successful")