fix: close previous dialog when user reset the API URL (#1025)

This commit is contained in:
Dhruvan Bhalara 2023-07-16 19:34:35 +05:30 committed by GitHub
parent 2460acf0f4
commit 159c85bd1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,9 @@ class SManageApiUrl extends BaseViewModel {
onPressed: () {
_managerAPI.setApiUrl('');
_toast.showBottom('settingsView.restartAppForChanges');
Navigator.of(context).pop();
Navigator.of(context)
..pop()
..pop();
},
)
],