when add or remove components check again the hid

This commit is contained in:
Cayo Puigdefabregas 2020-11-12 20:58:38 +01:00
parent 82a3344965
commit a122753e34
1 changed files with 3 additions and 0 deletions

View File

@ -1510,6 +1510,9 @@ def update_components_action_one(target: ActionWithOneDevice, device: Device, __
target.components.clear()
if isinstance(device, Computer):
target.components |= device.components
else:
if isinstance(device, Computer):
device.add_mac_to_hid()
@event.listens_for(ActionWithMultipleDevices.devices, Events.init_collection.__name__,