Skip to content

Commit

Permalink
Store Sidebar Position (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 authored Oct 18, 2024
1 parent 18ae461 commit ecd69e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Plug.vala
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ public class Sharing.Plug : Switchboard.Plug {
shrink_start_child = false
};

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", main_container, "position", DEFAULT);
}

content = new Gtk.Stack ();
content.add_named (main_container, "main-container");
content.add_named (network_grid_view, "network-alert-view");
Expand Down

0 comments on commit ecd69e7

Please sign in to comment.