mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 02:05:29 +00:00
Check if widget is mounted before calling setstate() (#193)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user