Skip to content

Commit

Permalink
i.signatures: use full element name only for listing signature files
Browse files Browse the repository at this point in the history
and short version to pass as a parameter to module
  • Loading branch information
marisn committed Aug 15, 2023
1 parent 0284889 commit ddcac22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 4 additions & 1 deletion gui/wxpython/gui_core/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,10 @@ def run(self):
sigtype = self.task.get_param(
"sigtype", element="element", raiseError=False
)
self.data[win.UpdateItems] = {"element": sigtype.get("value", "")}
value = sigtype.get("value", "")
if value:
value = f"signatures/{value}"
self.data[win.UpdateItems] = {"element": value}


def UpdateDialog(parent, event, eventId, task):
Expand Down
6 changes: 0 additions & 6 deletions gui/wxpython/gui_core/gselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -3155,12 +3155,6 @@ def __init__(
self.SetName("SignatureTypeSelect")
self.SetItems(["sig", "sigset"])

def GetValue(self):
value = super(SignatureTypeSelect, self).GetValue()
if value:
return f"signatures/{value}"
return value


class SeparatorSelect(wx.ComboBox):
"""Widget for selecting separator"""
Expand Down

0 comments on commit ddcac22

Please sign in to comment.