Skip to content

Commit 0efcbd7

Browse files
authored
Merge pull request #76 from water-works/alexgolec-fix-decode-null-input-tooltip
Handle null tooltips in the input plugin view
2 parents 80555df + 46480cd commit 0efcbd7

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)