
Devices may outlive the corresponding menu item, for example on shutdown. Make sure that signals are disconnected correctly in that case to avoid warnings. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8223 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3669>