diff --git a/Cargo.toml b/Cargo.toml index 839d611..00cff78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,12 @@ edition = "2021" license = "GPL-3.0-only" rust-version = "1.71" +[[example]] +name = "dialog" # examples/dialog.rs + +[[example]] +name = "gvfs" # examples/gvfs.rs + [build-dependencies] vergen = { version = "8", features = ["git", "gitcl"] } diff --git a/src/dialog.rs b/src/dialog.rs index c713ac9..8f93fde 100644 --- a/src/dialog.rs +++ b/src/dialog.rs @@ -440,6 +440,13 @@ impl Application for App { let accept_label = flags.kind.accept_label(); let mut nav_model = segmented_button::ModelBuilder::default(); + + nav_model = nav_model.insert(move |b| { + b.text(fl!("recents")) + .icon(widget::icon::from_name("accessories-clock-symbolic").size(16)) + .data(Location::Recents) + }); + if let Some(dir) = dirs::home_dir() { nav_model = nav_model.insert(move |b| { b.text(fl!("home"))