fix: subscription for dock config changes
This commit is contained in:
parent
bd2e92fa64
commit
367d50ab2d
1 changed files with 11 additions and 0 deletions
|
|
@ -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),
|
||||
])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue