Skip to content
Snippets Groups Projects
Verified Commit 6f5716a1 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added preference to control plugin usage

parent 812709ad
No related branches found
No related tags found
No related merge requests found
from dynamic_preferences import types
from dynamic_preferences.registries import global_preferences_registry
plugins = types.Section("plugins")
@global_preferences_registry.register
class PluginsEnabled(types.BooleanPreference):
section = plugins
show_in_api = True
name = "enabled"
default = True
verbose_name = "Enable Funkwhale plugins"
help_text = "If disabled, all installed and enabled plugins will be ignored."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment