mirror of
https://github.com/inventree/inventree-app.git
synced 2025-05-14 13:03:11 +00:00
Remove unused var
This commit is contained in:
parent
2d9bc145bf
commit
5c1ceb7a0c
@ -59,12 +59,6 @@ class InvenTreeBarcodeControllerState extends State<InvenTreeBarcodeController>
|
|||||||
processingBarcode = true;
|
processingBarcode = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
BuildContext? context;
|
|
||||||
|
|
||||||
if (hasContext()) {
|
|
||||||
context = OneContext.hasContext ? OneContext().context : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
showLoadingOverlay();
|
showLoadingOverlay();
|
||||||
await pauseScan();
|
await pauseScan();
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ Widget progressIndicator() {
|
|||||||
|
|
||||||
void showLoadingOverlay() {
|
void showLoadingOverlay() {
|
||||||
|
|
||||||
BuildContext? context = OneContext().context;
|
BuildContext? context = OneContext.hasContext ? OneContext().context : null;
|
||||||
|
|
||||||
if (context == null) {
|
if (context == null) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user