Add button to toggle view

This commit is contained in:
Jeremy Soller 2024-01-05 15:17:38 -07:00
parent 40ee305eb2
commit 6acac60526
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
2 changed files with 18 additions and 0 deletions

View file

@ -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;