Prechádzať zdrojové kódy

If the command name has shortcut definitions, strip them in form title

Michael Hanke 1 rok pred
rodič
commit
cb88c0a673
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      datalad_gooey/dataladcmd_ui.py

+ 4 - 1
datalad_gooey/dataladcmd_ui.py

@@ -95,7 +95,10 @@ class GooeyDataladCmdUI(QObject):
             cmdkwargs,
         )
         # set title afterwards, form might just have been created first, lazily
-        self._cmd_title.setText(get_cmd_displayname(api, cmdname))
+        self._cmd_title.setText(
+            # remove potential shortcut marker
+            get_cmd_displayname(api, cmdname).replace('&', '')
+        )
         self._cmd_title.setToolTip(f'API command: `{cmdname}`')
         # make sure the UI is visible
         self.pwidget.setEnabled(True)