From b800bd91fd21639fba8eda0f176c81c780bbc5aa Mon Sep 17 00:00:00 2001 From: Junyuan Feng Date: Mon, 7 Mar 2022 19:24:13 +0800 Subject: [PATCH] Fix saving not encypted key --- lib/view/page/private_key/edit.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/view/page/private_key/edit.dart b/lib/view/page/private_key/edit.dart index 9061eb00..17044830 100644 --- a/lib/view/page/private_key/edit.dart +++ b/lib/view/page/private_key/edit.dart @@ -80,9 +80,9 @@ class _PrivateKeyEditPageState extends State final name = nameController.text; final key = keyController.text; final pwd = pwdController.text; - if (name.isEmpty || key.isEmpty || pwd.isEmpty) { + if (name.isEmpty || key.isEmpty) { showSnackBar( - context, const Text('Three fields must not be empty.')); + context, const Text('Name and Key must not be empty.')); return; } FocusScope.of(context).unfocus();