fix: include config id in subscription id
This commit is contained in:
parent
ae14aade11
commit
50d2104485
1 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,10 @@ pub fn watcher_subscription<T: CosmicConfigEntry + Send + Sync + Default + 'stat
|
||||||
is_state: bool,
|
is_state: bool,
|
||||||
) -> iced_futures::Subscription<Update<T>> {
|
) -> iced_futures::Subscription<Update<T>> {
|
||||||
let id = std::any::TypeId::of::<T>();
|
let id = std::any::TypeId::of::<T>();
|
||||||
Subscription::run_with_id(id, watcher_stream(settings_daemon, config_id, is_state))
|
Subscription::run_with_id(
|
||||||
|
(id, config_id),
|
||||||
|
watcher_stream(settings_daemon, config_id, is_state),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn watcher_stream<T: CosmicConfigEntry + Send + Sync + Default + 'static + Clone>(
|
fn watcher_stream<T: CosmicConfigEntry + Send + Sync + Default + 'static + Clone>(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue