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

@@ -71,7 +71,7 @@ class _MyHomePageState extends State<MyHomePage>
title: GestureDetector(
onLongPress: () =>
AppRoute(const DebugPage(), 'Debug Page').go(context),
child: const Text('ToolBox'),
child: const Text(BuildData.name),
),
bottom: TabBar(
indicatorColor: widget.primaryColor,

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';
}