parent
75fe043e73
commit
e50c41aa24
1 changed files with 7 additions and 5 deletions
|
|
@ -889,11 +889,13 @@ impl App {
|
||||||
fn update_nav_model(&mut self) {
|
fn update_nav_model(&mut self) {
|
||||||
let mut nav_model = segmented_button::ModelBuilder::default();
|
let mut nav_model = segmented_button::ModelBuilder::default();
|
||||||
|
|
||||||
nav_model = nav_model.insert(|b| {
|
if self.flags.config.show_recents {
|
||||||
b.text(fl!("recents"))
|
nav_model = nav_model.insert(|b| {
|
||||||
.icon(widget::icon::from_name("document-open-recent-symbolic"))
|
b.text(fl!("recents"))
|
||||||
.data(Location::Recents)
|
.icon(widget::icon::from_name("document-open-recent-symbolic"))
|
||||||
});
|
.data(Location::Recents)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
for favorite in &self.flags.config.favorites {
|
for favorite in &self.flags.config.favorites {
|
||||||
if let Some(path) = favorite.path_opt() {
|
if let Some(path) = favorite.path_opt() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue