mirror of
https://github.com/libratbag/piper.git
synced 2026-05-19 12:26:00 -04:00
MousePerspective: commit is now synchronous
Update the mouse perspective according to the changes made in f842f27.
This commit is contained in:
committed by
Peter Hutterer
parent
59bc2707c0
commit
cad78efb26
@@ -19,7 +19,7 @@ from gettext import gettext as _
|
||||
from .buttonspage import ButtonsPage
|
||||
from .gi_composites import GtkTemplate
|
||||
from .profilerow import ProfileRow
|
||||
from .ratbagd import RatbagErrorCode, RatbagdDevice
|
||||
from .ratbagd import RatbagdDevice
|
||||
from .resolutionspage import ResolutionsPage
|
||||
from .ledspage import LedsPage
|
||||
|
||||
@@ -128,13 +128,9 @@ class MousePerspective(Gtk.Overlay):
|
||||
self._hide_notification_commit()
|
||||
return False
|
||||
|
||||
def _commit_cb(self, status):
|
||||
if not status == RatbagErrorCode.SUCCESS:
|
||||
self._show_notification_commit()
|
||||
|
||||
@GtkTemplate.Callback
|
||||
def _on_save_button_clicked(self, button):
|
||||
self._device.commit(self._commit_cb)
|
||||
self._device.commit()
|
||||
|
||||
@GtkTemplate.Callback
|
||||
def _on_notification_commit_close_clicked(self, button):
|
||||
|
||||
Reference in New Issue
Block a user