Change app name

This commit is contained in:
Junyuan Feng
2022-01-11 13:34:15 +08:00
parent a58119ef54
commit db3ec38a0f
7 changed files with 16 additions and 9 deletions

View File

@@ -183,7 +183,13 @@ class _ServerPageState extends State<ServerPage>
case ServerConnectionState.connecting:
return 'Connecting...';
case ServerConnectionState.failed:
return failedInfo ?? 'Failed';
if (failedInfo == null) {
return 'Failed';
}
if (failedInfo.contains('encypted')) {
return 'Please "save" this private key again.';
}
return failedInfo;
default:
return 'Unknown State';
}