Skip to content

Commit

Permalink
check valid
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Oct 18, 2024
1 parent 7fc1b02 commit de0a0b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Plug.vala
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ public class MouseTouchpad.Plug : Switchboard.Plug {
shrink_end_child = false
};

var settings = new Settings ("io.elementary.settings");
settings.bind ("sidebar-position", hpaned, "position", DEFAULT);
var sss = SettingsSchemaSource.get_default ().lookup ("io.elementary.settings", true);
if (sss != null && sss.has_key ("sidebar-position")) {
var settings = new Settings ("io.elementary.settings");
settings.bind ("sidebar-position", hpaned, "position", DEFAULT);
}
}

return hpaned;
Expand Down

0 comments on commit de0a0b6

Please sign in to comment.