]> git.ipfire.org Git - people/ms/westferry.git/commitdiff
UI: Do not register UI modules that start with an underscore
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Dec 2021 19:05:57 +0000 (19:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Dec 2021 19:05:57 +0000 (19:05 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/westferry/ui/base.py

index 8d3317bcd7c982aea8f4eb38450b5e4996489ccf..c5bcf57921cb13f1926924826d5ede659304f246 100644 (file)
@@ -49,7 +49,7 @@ class UIModulesRegistration(type):
 
                # The main class from which is inherited is not registered
                # as a plugin
-               if name == "BaseUIModule":
+               if name == "BaseUIModule" or name.startswith("_"):
                        return
 
                if name.endswith("Module"):