add error message

This commit is contained in:
piotr
2024-09-19 01:49:07 +02:00
parent ee913ce926
commit 7de7034dfd

View File

@@ -94,6 +94,9 @@ class KeyboardLayout(Gtk.EventBox):
if label:
self.label.set_text(label)
self.show_all()
else:
eprint("KeyboardLayout module: failed listing devices, won't create UI, sorry.")
def list_keyboards(self):
if self.compositor == "Hyprland":