diff --git a/lib/serverlist.dart b/lib/serverlist.dart index a25b522..2529951 100644 --- a/lib/serverlist.dart +++ b/lib/serverlist.dart @@ -345,8 +345,12 @@ class _ServerListState extends State { } return GestureDetector( onTap: () { - setState(() => selectedServer = index); - print(index.toString() + " clicked"); + setState(() { + if (selectedServer == index) + selectedServer = -1; + else + selectedServer = index; + }); }, child: Container( width: MediaQuery.of(context).size.width,