From b76b2fc362f32ca8a790ae147a10cedfc123e7d2 Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Wed, 20 Feb 2019 13:16:49 +0100 Subject: [PATCH] MousePerspective: do not show "Add profile" button Previously, we would just make it insensitive (i.e., not clickable). But why show it at all if it cannot be used anyway? --- piper/mouseperspective.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piper/mouseperspective.py b/piper/mouseperspective.py index 7b5c369..3eb9acb 100644 --- a/piper/mouseperspective.py +++ b/piper/mouseperspective.py @@ -100,7 +100,7 @@ class MousePerspective(Gtk.Overlay): # Find the first profile that is enabled. If there is none, disable the # add button. left = next((p for p in device.profiles if not p.enabled), None) - self.add_profile_button.set_sensitive(left is not None) + self.add_profile_button.set_visible(left is not None) self.listbox_profiles.foreach(Gtk.Widget.destroy) for profile in device.profiles: