Fix #42, dont load IP from File, if auto-connected
This commit is contained in:
parent
9444e8198f
commit
7da58c7dbe
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue