Fix dialog_yesno per kodi19

This commit is contained in:
Alhaziel01
2021-01-21 14:56:08 +01:00
parent 89f1684693
commit 639ddefbe1

View File

@@ -51,7 +51,7 @@ def dialog_yesno(heading, message, nolabel=config.get_localized_string(70170), y
dialog = xbmcgui.Dialog()
# customlabel only work on kodi 19
if PY3 and customlabel:
return dialog.yesno(heading, message, customlabel=customlabel, nolabel=nolabel, yeslabel=yeslabel, autoclose=autoclose)
return dialog.yesnocustom(heading, message, customlabel=customlabel, nolabel=nolabel, yeslabel=yeslabel, autoclose=autoclose)
else:
return dialog.yesno(heading, message, nolabel=nolabel, yeslabel=yeslabel, autoclose=autoclose)