Skip to content

Plugin name not being correctly accessed #3555

@vsajip

Description

@vsajip

The name specified for a plugin seems not to be correctly accessed - it's not being read from the plugin_info's plugin_object, as it ought to be. Instead of

self._commands[plugin_info.name] = plugin_info.plugin_object

it should be something like

          name = getattr(plugin_info.plugin_object, 'name', plugin_info.name)
          self._commands[name] = plugin_info.plugin_object

Similar logic needs to be applied for the activation, at

self.plugin_manager.activatePluginByName(plugin_info.name)

which could be something like

          name = getattr(plugin_info.plugin_object, 'name', plugin_info.name)
          self.plugin_manager.activatePluginByName(name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions