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

@ -123,7 +123,12 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
} else if &arg == "--trash" {
Location::Trash
} else if &arg == "--recents" {
Location::Recents
if config.show_recents {
Location::Recents
} else {
log::warn!("recents feature is disabled in config");
continue;
}
} else if &arg == "--network" {
Location::Network("network:///".to_string(), fl!("networks"), None)
} else {