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}");