fix: don't try to connect via SSH with empty username
This commit is contained in:
parent
76454bd3f9
commit
3868b1199c
|
|
@ -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')),
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue