fix: update dependencies

This commit is contained in:
Ashley Wulber 2024-05-26 13:50:10 -04:00 committed by GitHub
parent af7523b9bf
commit c64030c898
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 242 additions and 177 deletions

396
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -27,12 +27,12 @@ dirs = "5.0.1"
downcast-rs = "1.2.0"
freedesktop-desktop-entry = "0.5.0"
futures = { package = "futures-lite", version = "2.2.0" }
generator = "=0.7.5"
generator = "=0.8.1"
hostname-validator = "1.1.1"
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"
itertools = "0.12.0"
itertools = "0.13.0"
itoa = "1.0.10"
libcosmic.workspace = true
notify = "6.1.1"

View file

@ -628,7 +628,7 @@ impl SettingsApp {
self.nav_model
.insert()
.text(page.title.clone())
.icon(icon::from_name(&*page.icon_name).into())
.icon(icon::from_name(&*page.icon_name))
.data(id)
.with_id(|nav_id| self.pages.data_set(id, nav_id))
}

View file

@ -14,7 +14,7 @@ use std::{
sync::Arc,
};
use cosmic::{command, Apply, Command};
use cosmic::{app, command, Apply, Command};
use cosmic::{
dialog::file_chooser,
widget::{
@ -545,7 +545,7 @@ impl Page {
let _ = self.config.set_current_folder(None);
command = cosmic::command::future(async move {
let folder = change_folder(Config::default_folder().to_owned(), true).await;
Message::ChangeFolder(folder).into()
Message::ChangeFolder(folder)
});
} else {
self.select_first_wallpaper();
@ -564,7 +564,7 @@ impl Page {
}
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 {
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
.chain(std::iter::once(cosmic::command::message(
Message::CacheDisplayImage.into(),
.chain(std::iter::once(cosmic::command::message::<
_,
crate::app::Message,
>(
Message::CacheDisplayImage
))),
);
}