From 159c85bd1f1e9432a806eaa76bc99b8ec0019529 Mon Sep 17 00:00:00 2001 From: Dhruvan Bhalara <53393418+dhruvanbhalara@users.noreply.github.com> Date: Sun, 16 Jul 2023 19:34:35 +0530 Subject: [PATCH] fix: close previous dialog when user reset the API URL (#1025) --- .../settings/settingsFragment/settings_manage_api_url.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/views/settings/settingsFragment/settings_manage_api_url.dart b/lib/ui/views/settings/settingsFragment/settings_manage_api_url.dart index 92b48895..c1b1ec2d 100644 --- a/lib/ui/views/settings/settingsFragment/settings_manage_api_url.dart +++ b/lib/ui/views/settings/settingsFragment/settings_manage_api_url.dart @@ -93,7 +93,9 @@ class SManageApiUrl extends BaseViewModel { onPressed: () { _managerAPI.setApiUrl(''); _toast.showBottom('settingsView.restartAppForChanges'); - Navigator.of(context).pop(); + Navigator.of(context) + ..pop() + ..pop(); }, ) ],