feat: add setting to enable/disable the "recents" feature
This commit is contained in:
parent
8909689245
commit
5d3d893c9e
5 changed files with 72 additions and 40 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue