Add button to toggle view
This commit is contained in:
parent
40ee305eb2
commit
6acac60526
2 changed files with 18 additions and 0 deletions
|
|
@ -217,6 +217,7 @@ pub enum Message {
|
|||
Click(Option<usize>),
|
||||
Home,
|
||||
Parent,
|
||||
View(View),
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
|
@ -397,6 +398,9 @@ impl Tab {
|
|||
cd = Some(parent.to_owned());
|
||||
}
|
||||
}
|
||||
Message::View(view) => {
|
||||
self.view = view;
|
||||
}
|
||||
}
|
||||
if let Some(path) = cd {
|
||||
self.path = path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue