From f23cef80c8cdae10abb51c0d29362c8729ed7d0e Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Fri, 11 Aug 2017 13:57:32 +0200 Subject: [PATCH] MousePerspective: correctly initialise the commit button Piper can start with dirty profiles; only setting the button (in)active doesn't update the CSS class so the suggested action hint would be missed. --- piper/mouseperspective.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piper/mouseperspective.py b/piper/mouseperspective.py index 93f1e4c..2a39ce4 100644 --- a/piper/mouseperspective.py +++ b/piper/mouseperspective.py @@ -84,7 +84,7 @@ class MousePerspective(Gtk.Overlay): active_profile = device.active_profile self.label_profile.set_label(_("Profile {}").format(active_profile.index + 1)) - self.button_commit.set_sensitive(active_profile.dirty) + self._on_profile_notify_dirty(active_profile, None) # Find the first profile that is enabled. If there is none, disable the # add button.