mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-24 11:22:55 +00:00
dell-dock: mirror updatable flag into thunderbolt
This makes sure that if an update is pending (as stored in the EC), Thunderbolt won't show in a needing update state again. Fixes: #2374
This commit is contained in:
parent
258177472f
commit
6a1a49eaef
@ -121,6 +121,17 @@ fu_plugin_usb_device_added (FuPlugin *plugin,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
fu_plugin_device_registered (FuPlugin *plugin, FuDevice *device)
|
||||
{
|
||||
/* thunderbolt plugin */
|
||||
if (g_strcmp0 (fu_device_get_plugin (device), "thunderbolt") != 0 ||
|
||||
fu_device_has_flag (device, FWUPD_DEVICE_FLAG_INTERNAL))
|
||||
return;
|
||||
/* clone updatable flag to leave in needs activation state */
|
||||
fu_dell_dock_clone_updatable (device);
|
||||
}
|
||||
|
||||
gboolean
|
||||
fu_plugin_device_removed (FuPlugin *plugin, FuDevice *device, GError **error)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user