From 44c545a4a3dbd23d3559248b2a0747990f036915 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Mon, 3 Jun 2024 11:56:40 -0400 Subject: [PATCH] Updated to use new gsettings keys --- data/com.subgraph.RealmConfig.gschema.xml | 4 ++-- realm-config-ui/src/configure_dialog/settings.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/com.subgraph.RealmConfig.gschema.xml b/data/com.subgraph.RealmConfig.gschema.xml index 2211543..7391496 100644 --- a/data/com.subgraph.RealmConfig.gschema.xml +++ b/data/com.subgraph.RealmConfig.gschema.xml @@ -1,7 +1,7 @@ - + [ 'rgb(153,193,241)', 'rgb(143,240,164)', @@ -14,7 +14,7 @@ - + ['main:rgb(153,193,241)'] diff --git a/realm-config-ui/src/configure_dialog/settings.rs b/realm-config-ui/src/configure_dialog/settings.rs index 3e3e231..393c6ad 100644 --- a/realm-config-ui/src/configure_dialog/settings.rs +++ b/realm-config-ui/src/configure_dialog/settings.rs @@ -68,18 +68,18 @@ impl CitadelSettings { let list = self.realms.iter().map(|r| r.to_string()).collect::>(); let realms = list.iter().map(|s| s.as_str()).collect::>(); - self.settings.set_strv("realm-frame-colors", &realms).is_ok() + self.settings.set_strv("realm-label-colors", &realms).is_ok() } pub fn new() -> Self { let settings = gio::Settings::new("com.subgraph.citadel"); - let realms = settings.strv("realm-frame-colors") + let realms = settings.strv("realm-label-colors") .into_iter() .flat_map(|gs| RealmFrameColor::try_from(gs.as_str()).ok()) .collect::>(); - let frame_colors = settings.strv("frame-color-list").into_iter() + let frame_colors = settings.strv("label-color-list").into_iter() .flat_map(|gs| gs.as_str().parse().ok()) .collect();