mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix music in initial set up wizard
Reverse the logic since music is enabled by default.
This commit is contained in:
parent
1c0c7f000f
commit
cb9aeebd3d
1 changed files with 10 additions and 9 deletions
|
@ -104,15 +104,16 @@ class ConnectionManager():
|
||||||
xbmc.executebuiltin('Addon.OpenSettings(%s)' % self.addonId)
|
xbmc.executebuiltin('Addon.OpenSettings(%s)' % self.addonId)
|
||||||
return
|
return
|
||||||
|
|
||||||
musicEnabled = xbmcgui.Dialog().yesno("Music Setting", "Enable music library?")
|
musicDisabled = xbmcgui.Dialog().yesno("Music Setting", "Disable music library?")
|
||||||
if musicEnabled:
|
if musicDisabled:
|
||||||
self.logMsg("User opted to enable music library.", 1)
|
self.logMsg("User opted to disable music library.", 1)
|
||||||
utils.settings('enableMusicSync', "true")
|
utils.settings('enableMusicSync', "false")
|
||||||
|
else:
|
||||||
musicPath = xbmcgui.Dialog().yesno("Music Setting", "Direct stream the music library?", "Select this option only if you plan on listening to music outside your network.")
|
# Music is enabled, prompt for direct stream
|
||||||
if musicPath:
|
musicPath = xbmcgui.Dialog().yesno("Music Setting", "Direct stream the music library?", "Select this option only if you plan on listening to music outside your network.")
|
||||||
self.logMsg("User option to direct stream music library.", 1)
|
if musicPath:
|
||||||
utils.settings('directstreammusic', "true")
|
self.logMsg("User option to direct stream music library.", 1)
|
||||||
|
utils.settings('directstreammusic', "true")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue