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:
Richard Hughes 2018-02-16 15:58:12 +00:00
parent 6a029ba2f6
commit 3c94eb0909

View File

@ -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 */