Instantly refresh server connection state

This commit is contained in:
LollipopKit
2021-10-27 16:50:31 +08:00
parent 0e6ecbe0cd
commit b8acd38b17
2 changed files with 6 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ class _ServerPageState extends State<ServerPage>
case ServerConnectionState.disconnected:
return 'Disconnected';
case ServerConnectionState.connected:
return upTime;
return upTime == '' ? 'Loading...' : upTime;
case ServerConnectionState.connecting:
return 'Connecting...';
case ServerConnectionState.failed: