mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Check if widget is mounted before calling setstate() (#193)
This commit is contained in:
parent
b7a37e50c5
commit
c5162c1947
6 changed files with 48 additions and 29 deletions
|
|
@ -626,9 +626,9 @@ class _QRViewState extends State<InvenTreeQRView> {
|
|||
flash_status = status != null && status;
|
||||
|
||||
// Reload
|
||||
setState(() {
|
||||
|
||||
});
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
}
|
||||
|
||||
// In order to get hot reload to work we need to pause the camera if the platform
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue