feat: add setting to enable/disable the "recents" feature

This commit is contained in:
Sebastiano Giordano 2026-02-05 20:13:56 +01:00 committed by Ashley Wulber
parent 8909689245
commit 5d3d893c9e
5 changed files with 72 additions and 40 deletions

View file

@ -1609,12 +1609,14 @@ impl Application for App {
&& let Some(path) = item.path_opt()
{
paths.push(path.clone());
let _ = update_recently_used(
path,
Self::APP_ID.to_string(),
"cosmic-files".to_string(),
None,
);
if self.flags.config.show_recents {
let _ = update_recently_used(
path,
Self::APP_ID.to_string(),
"cosmic-files".to_string(),
None,
);
}
}
}
}