fix: don't try to connect via SSH with empty username
This commit is contained in:
parent
c833b3613b
commit
c85890fcc6
|
|
@ -472,7 +472,10 @@ class _ManagerState extends State<Manager> with PreferencesMixin {
|
||||||
child: Text(context.t('Cancel')),
|
child: Text(context.t('Cancel')),
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () => Navigator.pop(context, true),
|
onPressed: () {
|
||||||
|
if (usernameController.text.isEmpty) return;
|
||||||
|
Navigator.of(context).pop(true);
|
||||||
|
},
|
||||||
child: Text(context.t('Connect')),
|
child: Text(context.t('Connect')),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue