mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
Fix saving not encypted key
This commit is contained in:
@@ -80,9 +80,9 @@ class _PrivateKeyEditPageState extends State<PrivateKeyEditPage>
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user