Skip to content

Commit

Permalink
Load left handed mode from settings-daemon (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter authored Jun 26, 2023
1 parent 7cf6f03 commit 5a83fc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Backends/MouseSettings.vala
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public class SettingsDaemon.Backends.MouseSettings : GLib.Object {
touchpad_settings = new GLib.Settings ("org.gnome.desktop.peripherals.touchpad");
interface_settings = new GLib.Settings ("org.gnome.desktop.interface");

// This is used by installer to set left-handed mode
if (accounts_service.left_handed != mouse_settings.get_boolean ("left-handed")) {
mouse_settings.set_boolean ("left-handed", accounts_service.left_handed);
}

sync_gsettings_to_accountsservice ();

mouse_settings.changed.connect ((key) => {
Expand Down

0 comments on commit 5a83fc3

Please sign in to comment.