2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

Ignore barcode resume if not mounted (#371)

This commit is contained in:
Oliver 2023-06-13 20:00:59 +10:00 committed by GitHub
parent 9cc666d13e
commit 367759e86c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,12 @@ class _CameraBarcodeControllerState extends InvenTreeBarcodeControllerState {
@override
Future<void> resumeScan() async {
// Do not attempt to resume if the widget is not mounted
if (!mounted) {
return;
}
try {
await _controller?.resumeCamera();
} on CameraException {