mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
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:
parent
ad594ff472
commit
033c2540e9
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue