fix(panel): config file name typo

This commit is contained in:
Ashley Wulber 2023-06-22 11:15:38 -04:00 committed by GitHub
parent c6c6d52df2
commit 21fddb4694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -189,7 +189,7 @@ impl Application for SettingsApp {
window_break,
keyboard_nav::subscription().map(Message::KeyboardNav),
desktop_files(0).map(|_| Message::DesktopInfo),
config_subscription(0, "com.system76.CosmicPanel.panel".into(), 1).map(
config_subscription(0, "com.system76.CosmicPanel.Panel".into(), 1).map(
|(_, e)| match e {
Ok(config) => Message::PanelConfig(config),
Err((errors, config)) => {

View file

@ -83,7 +83,7 @@ pub struct Page {
impl Default for Page {
fn default() -> Self {
let config_helper = cosmic_config::Config::new("com.system76.CosmicPanel.panel", 1).ok();
let config_helper = cosmic_config::Config::new("com.system76.CosmicPanel.Panel", 1).ok();
let current_config = config_helper.as_ref().and_then(|config_helper| {
// TODO error handling...
let panel_config = CosmicPanelConfig::get_entry(config_helper).ok()?;

View file

@ -29,7 +29,7 @@ pub struct Page {
impl Default for Page {
fn default() -> Self {
// TODO CosmicPanelConfig should return its own version
let config_helper = cosmic_config::Config::new("com.system76.CosmicPanel.panel", 1).ok();
let config_helper = cosmic_config::Config::new("com.system76.CosmicPanel.Panel", 1).ok();
let panel_config = config_helper.as_ref().and_then(|config_helper| {
// TODO error handling...
let panel_config = CosmicPanelConfig::get_entry(config_helper).ok()?;