Skip to content

Commit

Permalink
Select dialog is None on cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Beanow committed Mar 28, 2022
1 parent 6bf44d2 commit d3a51db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/kodihelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def profile_dialog(self):
current = -1

index = self.dialog(dialog_type='select', heading=self.language(30068), options=names, preselect=current)
if index > -1:
if index != None:
self.set_setting("profile_id", pids[index])
self.log("Profile selected %s: %s" % (names[index], pids[index]))
xbmc.executebuiltin('Container.Refresh')
Expand Down

0 comments on commit d3a51db

Please sign in to comment.