Skip to content

Commit

Permalink
Add currently blocked plugins to the string repr of plugin_manager (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Aug 2, 2021
1 parent 03b14dd commit fa727f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions napari_plugin_engine/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,9 @@ def __str__(self) -> str:
for name, plugin in sorted(self.plugins.items(), key=lambda x: x[0]):
text += self.plugin_info(plugin) + "\n"

if self._blocked:
text += '\nBlocked Plugins:\n----------------\n'
text += "\n".join(self._blocked)
return text

def plugin_info(self, plugin) -> str:
Expand Down

0 comments on commit fa727f5

Please sign in to comment.