From 8adbb8831feeb6bc6203d95f344a697250cb975a Mon Sep 17 00:00:00 2001 From: Chaimae Date: Sun, 22 Mar 2026 23:23:38 +0000 Subject: [PATCH] qui/devices: add confirmation notification after successful detach Previously only a 'Detaching...' notification was shown with no confirmation of completion. Add a second 'was detached' notification after success, consistent with qube shutdown two-step notifications. Fixes #10794 --- qui/devices/backend.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qui/devices/backend.py b/qui/devices/backend.py index 0f5074e1..06d4f253 100644 --- a/qui/devices/backend.py +++ b/qui/devices/backend.py @@ -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: