Fix #42, dont load IP from File, if auto-connected
This commit is contained in:
		@ -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")
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user