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.
This commit is contained in:
Jente Hidskes
2017-08-11 13:57:32 +02:00
parent 7fd66be80f
commit f23cef80c8

View File

@@ -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.