Go back to sidebar when collapsed

This commit is contained in:
Elias Projahn 2020-11-03 16:41:17 +01:00
parent 6d66317687
commit c8a473b9bb
5 changed files with 20 additions and 6 deletions

View file

@ -40,6 +40,10 @@ impl RecordingSelector {
let navigator = Navigator::new(&empty_screen);
leaflet.add(&navigator.widget);
navigator.set_back_cb(clone!(@strong leaflet, @strong sidebar_box => move || {
leaflet.set_visible_child(&sidebar_box);
}));
let result = Rc::new(Self {
backend: backend,
window: window,