From 033c2540e97299fed1383e5e4963f7e09ede677c Mon Sep 17 00:00:00 2001 From: im85288 Date: Sat, 6 Jun 2015 14:08:39 +0100 Subject: [PATCH] fix for logic when using preferences, it was saving all the time, now it only saves when save is pressed --- resources/lib/UserPreferences.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/UserPreferences.py b/resources/lib/UserPreferences.py index 3fa05ff6..ea203133 100644 --- a/resources/lib/UserPreferences.py +++ b/resources/lib/UserPreferences.py @@ -21,7 +21,7 @@ class UserPreferences(xbmcgui.WindowXMLDialog): def onInit(self): self.action_exitkeys_id = [10, 13] # set the dialog data - + self.save = False cinemaMode = self.configuration.get(u'EnableCinemaMode') self.getControl(8011).setSelected(cinemaMode) self.getControl(8001).setLabel(self.name) @@ -57,7 +57,7 @@ class UserPreferences(xbmcgui.WindowXMLDialog): if(controlID == 8012): # save now - self.save() + self.save = True self.close() elif(controlID == 8013):