From eefbe0db27c27424482e15ae646e2a14bb5fae3a Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Tue, 4 Feb 2014 21:54:14 +0100 Subject: [PATCH] Run less functions in a background thread --- main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.py b/main.py index 768f39b..aa8eba7 100644 --- a/main.py +++ b/main.py @@ -196,7 +196,6 @@ class gPotherSide: self.core.save() pyotherside.send('podcast-list-changed') - @run_in_background_thread def unsubscribe(self, podcast_id): podcast = self._get_podcast_by_id(podcast_id) podcast.unsubscribe() @@ -220,14 +219,13 @@ class gPotherSide: self.core.save() pyotherside.send('update-stats') - @run_in_background_thread def delete_episode(self, episode_id): episode = self._get_episode_by_id(episode_id) episode.delete() + self.core.save() pyotherside.send('deleted', episode_id) pyotherside.send('update-stats') - @run_in_background_thread def toggle_new(self, episode_id): episode = self._get_episode_by_id(episode_id) episode.is_new = not episode.is_new