better
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Chris Cochrun 2025-09-24 12:37:14 -05:00
parent 0d3f7180c9
commit 8068b57e71
4 changed files with 60 additions and 21 deletions

View file

@ -983,12 +983,18 @@ async fn add_images() -> Option<Vec<Image>> {
}
async fn add_videos() -> Option<Vec<Video>> {
let paths = rfd::AsyncFileDialog::new()
.set_title("Pick image")
.pick_files()
.await?;
debug!(?paths);
Some(paths.iter().map(|path| Video::from(path.path())).collect())
debug!("here man");
let paths =
Dialog::new().title("pick video").open_files().await.ok()?;
Some(
paths
.urls()
.iter()
.map(|path| {
Video::from(path.to_file_path().expect("oops"))
})
.collect(),
)
}
fn update_in_db(