canonical / firmware-updater

An experimental firmware updater UI based on fwupd
GNU General Public License v3.0
107 stars 15 forks source link

Infinite loading screen when fwupd don't find any devices #252

Open BLKKKBVSIK opened 6 months ago

BLKKKBVSIK commented 6 months ago

If the Fwupd service doesn't return any devices, we have an error, we should probably return a modal or any error message and not an infinite loading screen

Screenshot 2023-12-26 at 10 33 48
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FwupdNothingToDoException: No detected devices
#0      FwupdClient._callMethod (package:fwupd/src/fwupd_client.dart:555:11)
<asynchronous suspension>
#1      FwupdClient.getDevices (package:fwupd/src/fwupd_client.dart:168:20)
<asynchronous suspension>
#2      DeviceStore.refresh.<anonymous closure> (package:firmware_updater/device_store.dart:55:39)
<asynchronous suspension>
#3      _FirmwareAppState.initState.<anonymous closure> (package:firmware_updater/firmware_app.dart:55:23)
<asynchronous suspension>