Commit 217362fe authored by Jordan Petridis's avatar Jordan Petridis 🌱

Merge branch 'add-entry-activate' into 'master'

headerbar: Add activate handler to add entry

See merge request !130
parents a8246a96 0e0d860c
Pipeline #131510 failed with stages
in 48 seconds
......@@ -244,6 +244,16 @@ impl Header {
weak.upgrade().map(|h| h.add.on_add_clicked(&sender));
}));
s.add
.entry
.connect_activate(clone!(weak, sender => move |_| {
weak.upgrade().map(|h| {
if h.add.add.get_sensitive() {
h.add.on_add_clicked(&sender);
}
});
}));
s.back.connect_clicked(clone!(weak, sender => move |_| {
weak.upgrade().map(|h| h.switch_to_normal());
sender.send(Action::ShowShowsAnimated).expect("Action channel blew up somehow");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment