fix: update dependencies
This commit is contained in:
parent
af7523b9bf
commit
c64030c898
4 changed files with 242 additions and 177 deletions
396
Cargo.lock
generated
396
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -27,12 +27,12 @@ dirs = "5.0.1"
|
||||||
downcast-rs = "1.2.0"
|
downcast-rs = "1.2.0"
|
||||||
freedesktop-desktop-entry = "0.5.0"
|
freedesktop-desktop-entry = "0.5.0"
|
||||||
futures = { package = "futures-lite", version = "2.2.0" }
|
futures = { package = "futures-lite", version = "2.2.0" }
|
||||||
generator = "=0.7.5"
|
generator = "=0.8.1"
|
||||||
hostname-validator = "1.1.1"
|
hostname-validator = "1.1.1"
|
||||||
hostname1-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings" }
|
hostname1-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings" }
|
||||||
i18n-embed-fl = "0.7.0"
|
i18n-embed-fl = "0.8.0"
|
||||||
image = "0.25"
|
image = "0.25"
|
||||||
itertools = "0.12.0"
|
itertools = "0.13.0"
|
||||||
itoa = "1.0.10"
|
itoa = "1.0.10"
|
||||||
libcosmic.workspace = true
|
libcosmic.workspace = true
|
||||||
notify = "6.1.1"
|
notify = "6.1.1"
|
||||||
|
|
|
||||||
|
|
@ -628,7 +628,7 @@ impl SettingsApp {
|
||||||
self.nav_model
|
self.nav_model
|
||||||
.insert()
|
.insert()
|
||||||
.text(page.title.clone())
|
.text(page.title.clone())
|
||||||
.icon(icon::from_name(&*page.icon_name).into())
|
.icon(icon::from_name(&*page.icon_name))
|
||||||
.data(id)
|
.data(id)
|
||||||
.with_id(|nav_id| self.pages.data_set(id, nav_id))
|
.with_id(|nav_id| self.pages.data_set(id, nav_id))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ use std::{
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
|
|
||||||
use cosmic::{command, Apply, Command};
|
use cosmic::{app, command, Apply, Command};
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
dialog::file_chooser,
|
dialog::file_chooser,
|
||||||
widget::{
|
widget::{
|
||||||
|
|
@ -545,7 +545,7 @@ impl Page {
|
||||||
let _ = self.config.set_current_folder(None);
|
let _ = self.config.set_current_folder(None);
|
||||||
command = cosmic::command::future(async move {
|
command = cosmic::command::future(async move {
|
||||||
let folder = change_folder(Config::default_folder().to_owned(), true).await;
|
let folder = change_folder(Config::default_folder().to_owned(), true).await;
|
||||||
Message::ChangeFolder(folder).into()
|
Message::ChangeFolder(folder)
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
self.select_first_wallpaper();
|
self.select_first_wallpaper();
|
||||||
|
|
@ -564,7 +564,7 @@ impl Page {
|
||||||
}
|
}
|
||||||
|
|
||||||
command = cosmic::command::future(async move {
|
command = cosmic::command::future(async move {
|
||||||
Message::ChangeFolder(change_folder(path, false).await).into()
|
Message::ChangeFolder(change_folder(path, false).await)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -952,12 +952,15 @@ impl Page {
|
||||||
cosmic::command::future(async move {
|
cosmic::command::future(async move {
|
||||||
let result = wallpaper::load_image_with_thumbnail(path);
|
let result = wallpaper::load_image_with_thumbnail(path);
|
||||||
|
|
||||||
Message::ImageAdd(result.map(Arc::new)).into()
|
Message::ImageAdd(result.map(Arc::new))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
// Cache wallpaper preview early to prevent blank previews on reload
|
// Cache wallpaper preview early to prevent blank previews on reload
|
||||||
.chain(std::iter::once(cosmic::command::message(
|
.chain(std::iter::once(cosmic::command::message::<
|
||||||
Message::CacheDisplayImage.into(),
|
_,
|
||||||
|
crate::app::Message,
|
||||||
|
>(
|
||||||
|
Message::CacheDisplayImage
|
||||||
))),
|
))),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue