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

@ -38,6 +38,9 @@ impl Window {
let poe_list = PoeList::new(backend.clone());
let navigator = Navigator::new(&empty_screen);
navigator.set_back_cb(clone!(@strong leaflet, @strong sidebar_box => move || {
leaflet.set_visible_child(&sidebar_box);
}));
let result = Rc::new(Self {
backend,