From a7f87f2ac87e7b87899d7621f2dd638b333c96b3 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sat, 2 Jun 2018 21:34:19 +0300 Subject: [PATCH] ShowWidget: Fix markallplayed functionality. cfe79a73d6241b4be7a734a3189087b5813fcd16 changed the structure of the EpisodeWidget and broke this. --- hammond-gtk/src/widgets/show.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hammond-gtk/src/widgets/show.rs b/hammond-gtk/src/widgets/show.rs index 31917d6..fc3ac7f 100644 --- a/hammond-gtk/src/widgets/show.rs +++ b/hammond-gtk/src/widgets/show.rs @@ -339,8 +339,7 @@ fn dim_titles(episodes: >k::ListBox) -> Option<()> { .downcast::() .ok()?; let bar = foo.get_children().remove(0).downcast::().ok()?; - let baz = bar.get_children().remove(0).downcast::().ok()?; - let title = baz.get_children().remove(0).downcast::().ok()?; + let title = bar.get_children().remove(0).downcast::().ok()?; title.get_style_context().map(|c| c.add_class("dim-label")); }