Fix saving not encypted key

This commit is contained in:
Junyuan Feng
2022-03-07 19:24:13 +08:00
parent 07fbf78853
commit b800bd91fd

View File

@@ -80,9 +80,9 @@ class _PrivateKeyEditPageState extends State<PrivateKeyEditPage>
final name = nameController.text; final name = nameController.text;
final key = keyController.text; final key = keyController.text;
final pwd = pwdController.text; final pwd = pwdController.text;
if (name.isEmpty || key.isEmpty || pwd.isEmpty) { if (name.isEmpty || key.isEmpty) {
showSnackBar( showSnackBar(
context, const Text('Three fields must not be empty.')); context, const Text('Name and Key must not be empty.'));
return; return;
} }
FocusScope.of(context).unfocus(); FocusScope.of(context).unfocus();