Skip to content

Commit 46480cd

Browse files
author
Alexander Golec
committed
Handle null tooltips in the input plugin view
1 parent 80555df commit 46480cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/m64py/frontend/input.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ def get_opts(self):
215215
def set_opts(self):
216216
for key, val in self.opts.items():
217217
param, tooltip, widget, ptype = val
218-
tooltip = tooltip.decode()
218+
if tooltip:
219+
tooltip = tooltip.decode()
220+
else:
221+
tooltip = ""
219222
if ptype == M64TYPE_BOOL:
220223
if param:
221224
widget.setChecked(param)

0 commit comments

Comments
 (0)