Skip to content

Commit 6dec4b2

Browse files
committed
demo-app: Add rfd dependency
1 parent 54f6bfe commit 6dec4b2

File tree

8 files changed

+96
-153
lines changed

8 files changed

+96
-153
lines changed

Cargo.lock

+24-113
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/core-json/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ data-encoding = "2.5.0"
1919
mime = "0.3.17"
2020
serde = { version = "1.0.196", features = ["derive"] }
2121
serde_repr = "0.1.18"
22-
time = { version = "0.3.33", features = ["serde-human-readable"] }
22+
time = { version = "0.3.34", features = ["serde-human-readable"] }
2323
url = { version = "2.5.0", features = ["serde"] }
2424

2525
# JSON Schema (optional)

crates/core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ rand = "0.8.5"
2626
regex = "1.10.3"
2727
semval = "0.5.2"
2828
strum = { version = "0.26.1", features = ["derive"] }
29-
time = { version = "0.3.33", features = [
29+
time = { version = "0.3.34", features = [
3030
"macros",
3131
"local-offset",
3232
"parsing",

crates/media-file/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ nom = "7.1.3"
3131
num-traits = "0.2.17"
3232
palette = { version = "0.7.4", default-features = false }
3333
thiserror = "1.0.56"
34-
time = { version = "0.3.33", features = ["parsing"] }
34+
time = { version = "0.3.34", features = ["parsing"] }
3535
url = "2.5.0"
3636
walkdir = "2.4.0"
3737

demo-app/Cargo.toml

+12-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pretty_env_logger = "0.5.0"
2323

2424
[dependencies.aoide]
2525
path = ".."
26-
features = ["desktop-app"]
26+
features = ["desktop-app", "async-file-dialog"]
2727

2828
[dependencies.log]
2929
version = "0.4.20"
@@ -35,5 +35,14 @@ default-features = false
3535
features = ["macros", "rt-multi-thread"]
3636

3737
[dependencies.vizia]
38-
git = "https://github.com/vizia/vizia.git"
39-
branch = "main"
38+
#git = "https://github.com/vizia/vizia.git"
39+
#branch = "main"
40+
# See also: <https://github.com/vizia/vizia/pull/457>
41+
git = "https://github.com/uklotzde/vizia.git"
42+
branch = "accesskit-disable-default-features"
43+
44+
[dependencies.nix]
45+
# Missing feature in zbus 3.14.1
46+
version = "0.26.4"
47+
default-features = false
48+
features = ["user"]

demo-app/src/library/mod.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::{num::NonZeroUsize, path::PathBuf, sync::Arc};
55

66
use aoide::{
77
api::media::source::ResolveUrlFromContentPath,
8-
desktop_app::{Handle, ObservableReader},
8+
desktop_app::{fs::DirPath, Handle, ObservableReader},
99
};
1010

1111
pub mod collection;
@@ -117,9 +117,8 @@ impl Library {
117117
&self.state
118118
}
119119

120-
pub fn update_music_directory(&self, music_dir: Option<PathBuf>) {
121-
let music_dir = music_dir.map(Into::into);
122-
if self.state.settings.update_music_dir(music_dir.as_ref()) {
120+
pub fn update_music_directory(&self, music_dir: Option<&DirPath<'_>>) {
121+
if self.state.settings.update_music_dir(music_dir) {
123122
log::info!("Music directory updated: {music_dir:?}");
124123
} else {
125124
log::debug!("Music directory unchanged: {music_dir:?}");

0 commit comments

Comments
 (0)