Skip to content

Commit

Permalink
check scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Oct 18, 2024
1 parent 44b5cbe commit 327e026
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 @@ -80,8 +80,11 @@ public class PantheonShell.Plug : Switchboard.Plug {
resize_start_child = false
};

var settings = new Settings ("io.elementary.settings");
settings.bind ("sidebar-position", paned, "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", paned, "position", DEFAULT);
}
}

return paned;
Expand Down

0 comments on commit 327e026

Please sign in to comment.