fix: subscription for dock config changes

This commit is contained in:
Ashley Wulber 2023-09-13 10:40:49 -04:00 committed by Michael Murphy
parent bd2e92fa64
commit 367d50ab2d

View file

@ -204,6 +204,17 @@ impl Application for SettingsApp {
}
},
),
config_subscription(0, "com.system76.CosmicPanel.Dock".into(), 1).map(
|(_, e)| match e {
Ok(config) => Message::PanelConfig(config),
Err((errors, config)) => {
for why in errors {
tracing::error!(?why, "dock config load error");
}
Message::PanelConfig(config)
}
},
),
theme_subscription(0).map(Message::ThemeChanged),
])
}