diff --git a/lib/api.dart b/lib/api.dart index 143d61c4..6094f72e 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -111,16 +111,11 @@ class InvenTreeAPI { bool checkConnection(BuildContext context) { // Firstly, is the server connected? if (!isConnected()) { - showDialog( - context: context, - child: new SimpleDialog( - title: new Text(I18N.of(context).notConnected), - children: [ - ListTile( - title: Text(I18N.of(context).serverNotConnected), - ) - ] - ) + + showSnackIcon( + I18N.of(context).notConnected, + success: false, + icon: FontAwesomeIcons.server ); return false;