From 2c9631dcc51474d4724f515a2cae8e76344be04a Mon Sep 17 00:00:00 2001 From: Hugo Bayer Date: Wed, 29 Jan 2020 14:48:53 +0100 Subject: [PATCH] changed that when the displayname is empty it will be saved as empty --- lib/serverlist.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/serverlist.dart b/lib/serverlist.dart index ece22e8..93440b2 100644 --- a/lib/serverlist.dart +++ b/lib/serverlist.dart @@ -105,9 +105,7 @@ class _ServerListState extends State { 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 { child: Align( alignment: Alignment.centerLeft, child: Text( - servers[index].displayName, + servers[index].displayName.isEmpty?servers[index].uri:servers[index].displayName, style: TextStyle(fontSize: 24), ), ), -- 2.47.0