From 7e2640e2d0d5d182549f8df4ef51595f9c816e5b Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 27 Mar 2018 11:09:53 +0300 Subject: [PATCH] ShowWidget: When unsub notification expires, remove show from the ignore list. This should not make any difference regarding the behaviour since the Show id is eq to the sqlite rowid which means that even if the same show was removed and readded it would have diff id. --- hammond-gtk/src/app.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hammond-gtk/src/app.rs b/hammond-gtk/src/app.rs index 75dbf6d..910bf2f 100644 --- a/hammond-gtk/src/app.rs +++ b/hammond-gtk/src/app.rs @@ -209,6 +209,11 @@ impl App { } let callback = clone!(pd => move || { + if let Err(err) = utils::uningore_show(pd.id()) { + error!("Could not insert {} to the ignore list.", pd.title()); + error!("Error: {}", err); + } + // Spawn a thread so it won't block the ui. thread::spawn(clone!(pd => move || { if let Err(err) = delete_show(&pd) {