mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Remove unused var
This commit is contained in:
parent
2d9bc145bf
commit
5c1ceb7a0c
2 changed files with 1 additions and 7 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue