fix for logic when using preferences, it was saving all the time, now it

only saves when save is pressed
This commit is contained in:
im85288 2015-06-06 14:08:39 +01:00
parent ad594ff472
commit 033c2540e9

View file

@ -21,7 +21,7 @@ class UserPreferences(xbmcgui.WindowXMLDialog):
def onInit(self): def onInit(self):
self.action_exitkeys_id = [10, 13] self.action_exitkeys_id = [10, 13]
# set the dialog data # set the dialog data
self.save = False
cinemaMode = self.configuration.get(u'EnableCinemaMode') cinemaMode = self.configuration.get(u'EnableCinemaMode')
self.getControl(8011).setSelected(cinemaMode) self.getControl(8011).setSelected(cinemaMode)
self.getControl(8001).setLabel(self.name) self.getControl(8001).setLabel(self.name)
@ -57,7 +57,7 @@ class UserPreferences(xbmcgui.WindowXMLDialog):
if(controlID == 8012): if(controlID == 8012):
# save now # save now
self.save() self.save = True
self.close() self.close()
elif(controlID == 8013): elif(controlID == 8013):