Fix config watching

This commit is contained in:
Jeremy Soller 2025-06-23 11:20:48 -06:00
parent 1af2f4ffe5
commit a85b369399
3 changed files with 29 additions and 36 deletions

View file

@ -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,
),