Merge pull request #46 from PM2-IT21bWIN-ruiz-mach-krea/refactoring_chatwindowcontroller
fixed Problem setting Username in ClientConnectionHandler
This commit is contained in:
commit
119cd1eb52
|
@ -39,7 +39,7 @@ public class ClientConnectionHandler extends ConnectionHandler implements Runnab
|
||||||
this.serverAddress.set(serverAddress);
|
this.serverAddress.set(serverAddress);
|
||||||
this.serverPort.set(serverPort);
|
this.serverPort.set(serverPort);
|
||||||
setConnection(NetworkHandler.openConnection(serverAddress, serverPort));
|
setConnection(NetworkHandler.openConnection(serverAddress, serverPort));
|
||||||
this.userName = new SimpleStringProperty((userName == null || userName.isBlank())? USER_NONE : userName);
|
this.userName.set((userName == null || userName.isBlank())? USER_NONE : userName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SimpleStringProperty getServerAddressProperty() { return serverAddress; }
|
public SimpleStringProperty getServerAddressProperty() { return serverAddress; }
|
||||||
|
|
Loading…
Reference in New Issue