This commit is contained in:
parent
035f8896f1
commit
fae83aedc5
5 changed files with 44 additions and 40 deletions
36
src/main.rs
36
src/main.rs
|
@ -201,23 +201,23 @@ impl cosmic::Application for App {
|
|||
}
|
||||
};
|
||||
|
||||
// let items: Vec<ServiceItem> = items
|
||||
// .into_par_iter()
|
||||
// .map(|mut item| {
|
||||
// item.slides = item
|
||||
// .slides
|
||||
// .into_par_iter()
|
||||
// .map(|mut slide| {
|
||||
// text_svg::text_svg_generator(
|
||||
// &mut slide,
|
||||
// Arc::clone(&fontdb),
|
||||
// );
|
||||
// slide
|
||||
// })
|
||||
// .collect();
|
||||
// item
|
||||
// })
|
||||
// .collect();
|
||||
let items: Vec<ServiceItem> = items
|
||||
.into_par_iter()
|
||||
.map(|mut item| {
|
||||
item.slides = item
|
||||
.slides
|
||||
.into_par_iter()
|
||||
.map(|mut slide| {
|
||||
text_svg::text_svg_generator(
|
||||
&mut slide,
|
||||
Arc::clone(&fontdb),
|
||||
);
|
||||
slide
|
||||
})
|
||||
.collect();
|
||||
item
|
||||
})
|
||||
.collect();
|
||||
|
||||
let presenter = Presenter::with_items(items.clone());
|
||||
let song_editor = SongEditor::new(Arc::clone(&fontdb));
|
||||
|
@ -258,7 +258,7 @@ impl cosmic::Application for App {
|
|||
};
|
||||
|
||||
batch.push(app.add_library());
|
||||
batch.push(app.add_service(items, Arc::clone(&fontdb)));
|
||||
// batch.push(app.add_service(items, Arc::clone(&fontdb)));
|
||||
let batch = Task::batch(batch);
|
||||
(app, batch)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue