mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 13:59:15 +00:00
trivial: Don't remove all flags when the device is removed
We only really want to say 'the device is no longer updatable' and other flags on the device (for instance, if it was locked) might still be useful.
This commit is contained in:
parent
6a029ba2f6
commit
3c94eb0909
@ -323,7 +323,7 @@ fu_device_list_remove (FuDeviceList *self, FuDevice *device)
|
||||
if (fu_device_get_remove_delay (item->device) > 0) {
|
||||
|
||||
/* we can't do anything with an unconnected device */
|
||||
fu_device_set_flags (item->device, FWUPD_DEVICE_FLAG_NONE);
|
||||
fu_device_remove_flag (item->device, FWUPD_DEVICE_FLAG_UPDATABLE);
|
||||
|
||||
/* give the hardware time to re-enumerate or the user time to
|
||||
* re-insert the device with a magic button pressed */
|
||||
|
Loading…
Reference in New Issue
Block a user