Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions qui/devices/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,12 @@ def detach_from_vm(self, vm: VM, with_aux_devices: bool = True):
self.backend_domain, self._ident, self.device_class
)
vm.vm_object.devices[self.device_class].detach(assignment)
self.gtk_app.emit_notification(
_("Device detached"),
_("{} was detached from {}.").format(self.description, vm),
Gio.NotificationPriority.NORMAL,
notification_id=self.notification_id,
)
if self.devices_to_attach_with_me and with_aux_devices:
for device in self.devices_to_attach_with_me:
if device is self:
Expand Down