def _install_config_actions(self, names_and_shortcuts): """Install .gitconfig-defined actions""" if not names_and_shortcuts: return menu = self.actions_menu menu.addSeparator() for (name, shortcut) in names_and_shortcuts: action = menu.addAction(name, cmds.run(cmds.RunConfigAction, name)) if shortcut: action.setShortcut(shortcut)
def _install_config_actions(self, names_and_shortcuts): """Install .gitconfig-defined actions""" if not names_and_shortcuts: return menu = self.actions_menu menu.addSeparator() for (name, shortcut) in names_and_shortcuts: action = menu.addAction(name, cmds.run(cmds.RunConfigAction, name)) if shortcut: action.setShortcut(shortcut)