diff --git a/src/ui/song_editor.rs b/src/ui/song_editor.rs index 8b81c06..fecd5c1 100644 --- a/src/ui/song_editor.rs +++ b/src/ui/song_editor.rs @@ -1393,6 +1393,7 @@ impl SongEditor { use cosmic::iced_futures::futures::stream; // use cosmic::iced_futures::futures::{Stream, StreamExt}; // use cosmic::iced_futures::stream::channel; + use cosmic::task::stream; let font_db = Arc::clone(&self.font_db); // need to test to see which of these methods yields faster // text_svg slide creation. There is a small thought in me that @@ -1424,7 +1425,7 @@ impl SongEditor { handle.abort(); }; let size = slides.len(); - let (task, handle) = Task::stream(stream::iter( + let (task, handle) = stream(stream::iter( slides.into_iter().enumerate().map( move |(index, mut slide)| { text_svg::text_svg_generator(