changed that when the displayname is empty it will be saved as empty #30
1 changed files with 2 additions and 4 deletions
|
@ -105,9 +105,7 @@ class _ServerListState extends State<ServerList> {
|
|||
uri.text.isNotEmpty) {
|
||||
_formKey.currentState.save();
|
||||
_addServer(
|
||||
serverName.text.isEmpty
|
||||
? uri.text
|
||||
: serverName.text,
|
||||
serverName.text,
|
||||
uri.text);
|
||||
}
|
||||
},
|
||||
|
@ -209,7 +207,7 @@ class _ServerListState extends State<ServerList> {
|
|||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Text(
|
||||
servers[index].displayName,
|
||||
servers[index].displayName.isEmpty?servers[index].uri:servers[index].displayName,
|
||||
style: TextStyle(fontSize: 24),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue