mirror of
https://github.com/mupen64plus/mupen64plus-ui-python.git
synced 2025-04-02 10:51:53 -04:00
Handle null tooltips in the input plugin view
This commit is contained in:
parent
80555dfbda
commit
46480cd384
1 changed files with 4 additions and 1 deletions
|
@ -215,7 +215,10 @@ class Input(QDialog, Ui_InputDialog):
|
||||||
def set_opts(self):
|
def set_opts(self):
|
||||||
for key, val in self.opts.items():
|
for key, val in self.opts.items():
|
||||||
param, tooltip, widget, ptype = val
|
param, tooltip, widget, ptype = val
|
||||||
tooltip = tooltip.decode()
|
if tooltip:
|
||||||
|
tooltip = tooltip.decode()
|
||||||
|
else:
|
||||||
|
tooltip = ""
|
||||||
if ptype == M64TYPE_BOOL:
|
if ptype == M64TYPE_BOOL:
|
||||||
if param:
|
if param:
|
||||||
widget.setChecked(param)
|
widget.setChecked(param)
|
||||||
|
|
Loading…
Add table
Reference in a new issue