From 2a48d69fbe3754bd9ad31f24b69dc3a97fbbcc95 Mon Sep 17 00:00:00 2001 From: Ashley Wulber <48420062+wash2@users.noreply.github.com> Date: Thu, 22 Jun 2023 12:05:25 -0400 Subject: [PATCH] fix: Panel typo (#53) --- app/src/pages/desktop/panel/applets.rs | 4 ++-- app/src/pages/desktop/panel/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/pages/desktop/panel/applets.rs b/app/src/pages/desktop/panel/applets.rs index b479cb8..2b78235 100644 --- a/app/src/pages/desktop/panel/applets.rs +++ b/app/src/pages/desktop/panel/applets.rs @@ -88,7 +88,7 @@ impl Default for Page { // TODO error handling... let panel_config = CosmicPanelConfig::get_entry(config_helper).ok()?; // If the config is not present, it will be created with the default values and the name will not match - (panel_config.name == "panel").then_some(panel_config) + (panel_config.name == "Panel").then_some(panel_config) }); Self { available_entries: Vec::new(), @@ -408,7 +408,7 @@ impl Page { // TODO error handling... let panel_config = CosmicPanelConfig::get_entry(config_helper).ok()?; // If the config is not present, it will be created with the default values and the name will not match - (panel_config.name == "panel").then_some(panel_config) + (panel_config.name == "Panel").then_some(panel_config) }); self.current_config = current_config; } diff --git a/app/src/pages/desktop/panel/mod.rs b/app/src/pages/desktop/panel/mod.rs index f6c2941..a3453c1 100644 --- a/app/src/pages/desktop/panel/mod.rs +++ b/app/src/pages/desktop/panel/mod.rs @@ -34,7 +34,7 @@ impl Default for Page { // TODO error handling... let panel_config = CosmicPanelConfig::get_entry(config_helper).ok()?; // If the config is not present, it will be created with the default values and the name will not match - (panel_config.name == "panel").then_some(panel_config) + (panel_config.name == "Panel").then_some(panel_config) }); Self {