when add or remove components check again the hid
This commit is contained in:
parent
82a3344965
commit
a122753e34
|
@ -1510,6 +1510,9 @@ def update_components_action_one(target: ActionWithOneDevice, device: Device, __
|
||||||
target.components.clear()
|
target.components.clear()
|
||||||
if isinstance(device, Computer):
|
if isinstance(device, Computer):
|
||||||
target.components |= device.components
|
target.components |= device.components
|
||||||
|
else:
|
||||||
|
if isinstance(device, Computer):
|
||||||
|
device.add_mac_to_hid()
|
||||||
|
|
||||||
|
|
||||||
@event.listens_for(ActionWithMultipleDevices.devices, Events.init_collection.__name__,
|
@event.listens_for(ActionWithMultipleDevices.devices, Events.init_collection.__name__,
|
||||||
|
|
Reference in New Issue