ShowWidget: Restore sensitivite of the unsub button.

If you clicked unsub, then undo and then the same show widget you
would navigated to the previous ShowWidget and the unsub button
would still be insensitive.
This commit is contained in:
Jordan Petridis 2018-04-16 07:43:30 +03:00
parent 0589f2fe2a
commit 7a17b3df4b
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -145,6 +145,7 @@ fn on_unsub_button_clicked(pd: Arc<Podcast>, unsub_button: &gtk::Button, sender:
}; };
wrap().map_err(|err| error!("Action Sender: {}", err)).ok(); wrap().map_err(|err| error!("Action Sender: {}", err)).ok();
unsub_button.set_sensitive(true);
} }
fn on_played_button_clicked(pd: Arc<Podcast>, episodes: &gtk::Frame, sender: Sender<Action>) { fn on_played_button_clicked(pd: Arc<Podcast>, episodes: &gtk::Frame, sender: Sender<Action>) {