mirror of
https://github.com/libratbag/piper.git
synced 2026-05-19 12:26:00 -04:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user