From 16691b585d34df8308ef7629321b83f436387e84 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 26 Sep 2016 17:39:05 -0500 Subject: [PATCH] Re-add refresh for certain options only To avoid duplicate refresh --- resources/lib/context_entry.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/lib/context_entry.py b/resources/lib/context_entry.py index 14bce043..76f1dcc3 100644 --- a/resources/lib/context_entry.py +++ b/resources/lib/context_entry.py @@ -53,8 +53,11 @@ class ContextMenu(object): if self._select_menu(): self._action_menu() - #xbmc.sleep(500) - #xbmc.executebuiltin('Container.Refresh') + if self._selected_option in (OPTIONS['Delete'], OPTIONS['AddFav'], + OPTIONS['RemoveFav'], OPTIONS['RateSong']): + log.info("refreshing container") + xbmc.sleep(500) + xbmc.executebuiltin('Container.Refresh') @classmethod def _get_item_type(cls):