Reduce nav_bar width and misc improvements
This commit is contained in:
parent
b354a7d9e2
commit
8a46c4bbe1
3 changed files with 29 additions and 12 deletions
12
src/tab.rs
12
src/tab.rs
|
|
@ -331,7 +331,7 @@ pub fn scan_trash() -> Vec<Item> {
|
|||
items
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub enum Location {
|
||||
Path(PathBuf),
|
||||
Trash,
|
||||
|
|
@ -548,9 +548,13 @@ impl Tab {
|
|||
}
|
||||
}
|
||||
if let Some(location) = cd {
|
||||
self.location = location;
|
||||
self.items_opt = None;
|
||||
true
|
||||
if location != self.location {
|
||||
self.location = location;
|
||||
self.items_opt = None;
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue