Skip to content

Commit

Permalink
Add explicit bool to int conversion for Dialog return value. (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonsoroko authored Oct 18, 2024
1 parent 94ce13f commit 7433a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/site-packages/elementum/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def TranslateText(self, text):

def Dialog(self, title, message):
dialog = xbmcgui.Dialog()
return dialog.ok(getLocalizedLabel(title), getLocalizedLabel(message))
return int(dialog.ok(getLocalizedLabel(title), getLocalizedLabel(message)))

def Dialog_Browse_Single(self, type, heading, shares, mask, useThumbs, treatAsFolder, defaultt):
fn = six.ensure_text(xbmcgui.Dialog().browseSingle(type, getLocalizedLabel(heading), shares, mask, useThumbs, treatAsFolder, defaultt), errors='ignore')
Expand Down

0 comments on commit 7433a97

Please sign in to comment.