mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Fix empty screen for main window
This commit is contained in:
parent
357a4a4429
commit
52f0df7097
2 changed files with 5 additions and 0 deletions
|
|
@ -6,6 +6,9 @@
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="AdwHeaderBar">
|
<object class="AdwHeaderBar">
|
||||||
|
<property name="title-widget">
|
||||||
|
<object class="GtkLabel"/>
|
||||||
|
</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,8 @@ impl Navigator {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn reset(&self) {
|
pub fn reset(&self) {
|
||||||
|
self.widget.set_visible_child_name("empty_screen");
|
||||||
|
|
||||||
for screen in self.screens.replace(Vec::new()) {
|
for screen in self.screens.replace(Vec::new()) {
|
||||||
screen.detach_navigator();
|
screen.detach_navigator();
|
||||||
self.old_screens.borrow_mut().push(screen);
|
self.old_screens.borrow_mut().push(screen);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue