From b365d8dbfb12730f7d5397ac07b35373a7476027 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 17 Feb 2021 08:02:52 +1100 Subject: [PATCH] Check connection now uses snackbar --- lib/api.dart | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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;