mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-27 04:07:25 +01:00
Go back to sidebar when collapsed
This commit is contained in:
parent
6d66317687
commit
c8a473b9bb
5 changed files with 20 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue