Skip to content

Commit

Permalink
Update plugin.py (#1000)
Browse files Browse the repository at this point in the history
Updating the loading text for the plugins
  • Loading branch information
Zoophobus authored Jul 18, 2023
1 parent 9cd7188 commit fa4d9f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions activity_browser/controllers/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def discover_plugins(self):

def load_plugin(self, name):
try:
print("Loading plugin {}".format(name))
print("Importing plugin {}".format(name))
plugin_lib = importlib.import_module(name)
importlib.reload(plugin_lib)
return plugin_lib.Plugin()
Expand All @@ -72,6 +72,7 @@ def add_plugin(self, name, select: bool = True):
# Add plugins tabs
for tab in plugin.tabs:
self.window.add_tab_to_panel(tab, plugin.infos["name"], tab.panel)
print("Loaded tab {}".format(name))
return
print("Removing plugin {}".format(name))
# Apply plugin remove() function
Expand Down Expand Up @@ -99,4 +100,4 @@ def close_plugins(self):
""" close all plugins
"""
for plugin in self.plugins.values():
plugin.close()
plugin.close()

0 comments on commit fa4d9f9

Please sign in to comment.