From 734f85a517d43966e6ec66166281e0202c1f9c4d Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 24 Apr 2018 15:34:52 +0300 Subject: [PATCH] Fix logic typo. --- hammond-gtk/src/stacks/show.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hammond-gtk/src/stacks/show.rs b/hammond-gtk/src/stacks/show.rs index c9759cf..9f0c242 100644 --- a/hammond-gtk/src/stacks/show.rs +++ b/hammond-gtk/src/stacks/show.rs @@ -115,9 +115,9 @@ impl ShowStack { Ok(()) } - // Only update widget if it's podcast_id is equal to pid. + // Only update widget if its podcast_id is equal to pid. pub fn update_widget_if_same(&mut self, pid: i32) -> Result<(), Error> { - if self.show.podcast_id() == Some(pid) { + if self.show.podcast_id() != Some(pid) { debug!("Different widget. Early return"); return Ok(()); }