mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
introduced signals for pre/post-module-loading
This commit is contained in:
1 parent
770e4c00fd
commit
53adac652b
4 files changed
+36
-3
No files matched your search
@@ -26,6 +26,7 @@ import logging
|
||||
|
||||
from plinth import actions
|
||||
from plinth import cfg
|
||||
from plinth.signals import service_enabled
|
||||
import plinth.service as service_module
|
||||
|
||||
|
||||
@@ -37,7 +38,7 @@ def init():
|
||||
menu = cfg.main_menu.get('system:index')
|
||||
menu.add_urlname(_('Firewall'), 'icon-flag', 'firewall:index', 50)
|
||||
|
||||
service_module.ENABLED.connect(on_service_enabled)
|
||||
service_enabled.connect(on_service_enabled)
|
||||
|
||||
|
||||
@login_required
|
||||
|
||||
Reference in new issue
Block a user