Suppress screenmessage on entrypoints unloaded

This commit is contained in:
Rikko 2022-08-21 06:46:41 +05:30
parent 404cd4fd6a
commit 98279b5aad

View file

@ -424,8 +424,7 @@ class PluginLocal:
def disable(self): def disable(self):
for entry_point, plugin_info in ba.app.config["Plugins"].items(): for entry_point, plugin_info in ba.app.config["Plugins"].items():
if entry_point.startswith(self._entry_point_initials): if entry_point.startswith(self._entry_point_initials):
if plugin_info["enabled"]: # if plugin_info["enabled"]:
ba.screenmessage(f"{entry_point} unloaded", color = (0,1,0))
plugin_info["enabled"] = False plugin_info["enabled"] = False
# XXX: The below logic is more accurate but less efficient, since it actually # XXX: The below logic is more accurate but less efficient, since it actually
# reads the local plugin file and parses entry points from it. # reads the local plugin file and parses entry points from it.