mirror of
https://github.com/libratbag/piper.git
synced 2026-05-19 04:16:08 -04:00
MousePerspective: inform the user of errors
This simply connects the pieces: when a resync signal is emitted on the device, we show the notification informing the user that something has gone wrong.
This commit is contained in:
committed by
Peter Hutterer
parent
3b8f490b69
commit
08ea82b08b
@@ -84,6 +84,7 @@ class MousePerspective(Gtk.Overlay):
|
||||
def set_device(self, device):
|
||||
self._device = device
|
||||
capabilities = device.capabilities
|
||||
device.connect("resync", lambda _: self._show_notification_error())
|
||||
|
||||
self.stack.foreach(Gtk.Widget.destroy)
|
||||
if RatbagdDevice.CAP_RESOLUTION in capabilities:
|
||||
|
||||
Reference in New Issue
Block a user