fix: don't try to connect via SSH with empty username

This commit is contained in:
Yannick Mauray 2024-07-03 19:23:07 +02:00
parent 76454bd3f9
commit 3868b1199c
No known key found for this signature in database
GPG Key ID: C5C52B9E46D9F148
1 changed files with 4 additions and 1 deletions

View File

@ -472,7 +472,10 @@ class _ManagerState extends State<Manager> with PreferencesMixin {
child: Text(context.t('Cancel')),
),
TextButton(
onPressed: () => Navigator.pop(context, true),
onPressed: () {
if (usernameController.text.isEmpty) return;
Navigator.of(context).pop(true);
},
child: Text(context.t('Connect')),
),
],