From 7a17b3df4ba33bd4cb4cd8edea53bfea32c2ddbe Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Mon, 16 Apr 2018 07:43:30 +0300 Subject: [PATCH] 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. --- hammond-gtk/src/widgets/show.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/hammond-gtk/src/widgets/show.rs b/hammond-gtk/src/widgets/show.rs index 2ff735e..a4481ce 100644 --- a/hammond-gtk/src/widgets/show.rs +++ b/hammond-gtk/src/widgets/show.rs @@ -145,6 +145,7 @@ fn on_unsub_button_clicked(pd: Arc, unsub_button: >k::Button, sender: }; wrap().map_err(|err| error!("Action Sender: {}", err)).ok(); + unsub_button.set_sensitive(true); } fn on_played_button_clicked(pd: Arc, episodes: >k::Frame, sender: Sender) {