EpisodeView: Implement initial view update.
This commit is contained in:
parent
914cad72f5
commit
632f011db5
@ -173,6 +173,16 @@ impl EpisodeStack {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn update(&self) {
|
fn update(&self) {
|
||||||
// unimplemented!()
|
// FIXME: figure out if it should switch to empty view
|
||||||
|
let vis = self.stack.get_visible_child_name().unwrap();
|
||||||
|
let old = self.stack.get_child_by_name("episodes").unwrap();
|
||||||
|
|
||||||
|
let eps = EpisodesView::new();
|
||||||
|
|
||||||
|
self.stack.remove(&old);
|
||||||
|
self.stack.add_named(&eps.container, "episodes");
|
||||||
|
self.stack.set_visible_child_name(&vis);
|
||||||
|
|
||||||
|
old.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,6 +57,7 @@ impl EpisodesView {
|
|||||||
sep.show()
|
sep.show()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
view.container.show_all();
|
||||||
Rc::new(view)
|
Rc::new(view)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user