From d336beb04c368210ed3764efba2cd9e5edd33e04 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 27 Aug 2022 01:24:43 +0200 Subject: [PATCH] neon: Fix adding another account --- packages/neon/lib/src/pages/login/login.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/neon/lib/src/pages/login/login.dart b/packages/neon/lib/src/pages/login/login.dart index f864f33b..fd558de6 100644 --- a/packages/neon/lib/src/pages/login/login.dart +++ b/packages/neon/lib/src/pages/login/login.dart @@ -50,7 +50,11 @@ class _LoginPageState extends State { serverURL: result.server!, username: result.loginName!, appPassword: result.appPassword!, - ); + )..setupClient(await PackageInfo.fromPlatform()); + + if (!mounted) { + return; + } final accountsBloc = RxBlocProvider.of(context); if (widget.serverURL != null) {