cargo: Remove gtk-macros dependency
Using the crate is depreacted. Replaced spawn! macro with our own spawn function
This commit is contained in:
parent
ca672552be
commit
8b3cfd000a
8 changed files with 21 additions and 20 deletions
|
|
@ -30,7 +30,7 @@ use futures::future::{AbortHandle, Abortable};
|
|||
use once_cell::sync::Lazy;
|
||||
use std::cell::RefCell;
|
||||
|
||||
use gtk_macros::spawn;
|
||||
use crate::util::spawn;
|
||||
|
||||
use crate::image_metadata::LpImageMetadata;
|
||||
use crate::widgets::image::LpImage;
|
||||
|
|
@ -234,7 +234,7 @@ impl LpPropertiesView {
|
|||
imp.info_handle.replace(Some(handle));
|
||||
|
||||
// ...then spawn the future.
|
||||
spawn!(async {
|
||||
spawn(async {
|
||||
let _ = fut.await;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue