Fix config watching
This commit is contained in:
parent
1af2f4ffe5
commit
a85b369399
3 changed files with 29 additions and 36 deletions
|
|
@ -1,7 +1,6 @@
|
|||
use iced_futures::futures::{SinkExt, Stream};
|
||||
use iced_futures::{futures::channel::mpsc, stream};
|
||||
use notify::RecommendedWatcher;
|
||||
use notify_debouncer_full::{Debouncer, RecommendedCache};
|
||||
use std::{borrow::Cow, hash::Hash};
|
||||
|
||||
use crate::{Config, CosmicConfigEntry};
|
||||
|
|
@ -10,7 +9,7 @@ pub enum ConfigState<T> {
|
|||
Init(Cow<'static, str>, u64, bool),
|
||||
Waiting(
|
||||
T,
|
||||
Debouncer<RecommendedWatcher, RecommendedCache>,
|
||||
RecommendedWatcher,
|
||||
mpsc::Receiver<Vec<String>>,
|
||||
Config,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue