From 0c4803b88945a0a61231586d83de277ddbe9adb3 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 9 Feb 2021 20:09:24 +1100 Subject: [PATCH] Bug fix for routing issues --- lib/inventree/model.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/inventree/model.dart b/lib/inventree/model.dart index e7aec6d3..96abf38c 100644 --- a/lib/inventree/model.dart +++ b/lib/inventree/model.dart @@ -252,7 +252,9 @@ class InvenTreeModel { return null; } - hideProgressDialog(context); + if (dialog) { + hideProgressDialog(context); + } if (response.statusCode != 200) { showErrorDialog(context, I18N.of(context).serverError, "${I18N.of(context).statusCode}: ${response.statusCode}");