mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-03 13:17:12 +00:00
Set the context automatically when setting the device proxy
This commit is contained in:
parent
4795ab3122
commit
f4fb625fba
@ -1114,6 +1114,8 @@ fu_device_set_proxy(FuDevice *self, FuDevice *proxy)
|
||||
|
||||
/* copy from proxy */
|
||||
if (proxy != NULL) {
|
||||
if (fu_device_get_context(self) == NULL && fu_device_get_context(proxy) != NULL)
|
||||
fu_device_set_context(self, fu_device_get_context(proxy));
|
||||
if (fu_device_get_physical_id(self) == NULL &&
|
||||
fu_device_get_physical_id(proxy) != NULL)
|
||||
fu_device_set_physical_id(self, fu_device_get_physical_id(proxy));
|
||||
|
Loading…
Reference in New Issue
Block a user