From fae820959ef2ceb6f647186e865e34dc86b1ade3 Mon Sep 17 00:00:00 2001 From: Alain Date: Fri, 18 Oct 2024 16:09:08 -0500 Subject: [PATCH] valid scheme --- src/Plug.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Plug.vala b/src/Plug.vala index f9643795..a6dd18cd 100644 --- a/src/Plug.vala +++ b/src/Plug.vala @@ -67,8 +67,11 @@ public class Applications.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;