mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-02-04 14:33:19 +00:00
More checks
This commit is contained in:
parent
53b69d9623
commit
b98f044204
7 changed files with 50 additions and 30 deletions
|
|
@ -34,7 +34,7 @@ class InvenTreeDrawer extends StatelessWidget {
|
|||
|
||||
void _search() {
|
||||
|
||||
if (!InvenTreeAPI().checkConnection(context)) return;
|
||||
if (!InvenTreeAPI().checkConnection()) return;
|
||||
|
||||
_closeDrawer();
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ class InvenTreeDrawer extends StatelessWidget {
|
|||
* Upon successful scan, data are passed off to be decoded.
|
||||
*/
|
||||
Future <void> _scan() async {
|
||||
if (!InvenTreeAPI().checkConnection(context)) return;
|
||||
if (!InvenTreeAPI().checkConnection()) return;
|
||||
|
||||
_closeDrawer();
|
||||
scanQrCode(context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue