Home button tweak.
This commit is contained in:
parent
f2476cde65
commit
b82e4c8932
@ -37,8 +37,11 @@ pub fn get_headerbar(db: &Database, stack: >k::Stack) -> gtk::HeaderBar {
|
|||||||
// TODO: make it a back arrow button, that will hide when appropriate,
|
// TODO: make it a back arrow button, that will hide when appropriate,
|
||||||
// and add a StackSwitcher when more views are added.
|
// and add a StackSwitcher when more views are added.
|
||||||
home_button.connect_clicked(clone!(db, stack => move |_| {
|
home_button.connect_clicked(clone!(db, stack => move |_| {
|
||||||
|
let vis = stack.get_visible_child_name().unwrap();
|
||||||
stack.set_visible_child_name("fb_parent");
|
stack.set_visible_child_name("fb_parent");
|
||||||
update_podcasts_view(&db, &stack);
|
if vis != "pdw" {
|
||||||
|
update_podcasts_view(&db, &stack);
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// FIXME: There appears to be a memmory leak here.
|
// FIXME: There appears to be a memmory leak here.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user