Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6e3a742c by Philipp Hörist at 2022-10-19T20:50:02+02:00
new: Plugins: Add method to block plugins by name
- - - - -
1 changed file:
- gajim/plugins/pluginmanager.py
Changes:
=====================================
gajim/plugins/pluginmanager.py
=====================================
@@ -51,6 +51,9 @@
log = logging.getLogger('gajim.p.manager')
+
+BLOCKED_PLUGINS = []
+
FIELDS = ('name',
'short_name',
'version',
@@ -79,6 +82,9 @@ def __hash__(self):
@property
def is_usable(self) -> bool:
+ if self.short_name in BLOCKED_PLUGINS:
+ return False
+
if not self._check_requirements():
return False
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/6e3a742ca36037fbe096a1dd6e1ae9a27187a067
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/6e3a742ca36037fbe096a1dd6e1ae9a27187a067
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits