Added preference to control plugin usage
This commit is contained in:
		
							parent
							
								
									812709ad00
								
							
						
					
					
						commit
						6f5716a128
					
				|  | @ -0,0 +1,14 @@ | |||
| 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." | ||||
		Loading…
	
		Reference in New Issue
	
	 Eliot Berriot
						Eliot Berriot