diff --git a/lib/src/pages/manager.dart b/lib/src/pages/manager.dart index 91b3599..6213562 100644 --- a/lib/src/pages/manager.dart +++ b/lib/src/pages/manager.dart @@ -472,7 +472,10 @@ class _ManagerState extends State 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')), ), ],