Fix empty screen for main window

This commit is contained in:
Elias Projahn 2021-01-29 17:57:05 +01:00
parent 357a4a4429
commit 52f0df7097
2 changed files with 5 additions and 0 deletions

View file

@ -128,6 +128,8 @@ impl Navigator {
}
pub fn reset(&self) {
self.widget.set_visible_child_name("empty_screen");
for screen in self.screens.replace(Vec::new()) {
screen.detach_navigator();
self.old_screens.borrow_mut().push(screen);