Add feedback for Custom Slide generation #73

This commit is contained in:
Tim 2022-02-06 08:14:02 +00:00
parent db64a7d5bf
commit dc168b2fdf
No known key found for this signature in database
GPG Key ID: E95CE08DB3F50537

View File

@ -132,6 +132,7 @@ class Plugin(RegistryBase, RegistryProperties):
self.status = PluginStatus.Inactive
Registry().register_function('{name}_add_service_item'.format(name=self.name), self.process_add_service_event)
Registry().register_function('{name}_config_updated'.format(name=self.name), self.config_update)
Registry().register_function('{name}_visible_name'.format(name=self.name), self.get_visible_name)
self._setup(version)
def _setup(self, version):
@ -372,3 +373,9 @@ class Plugin(RegistryBase, RegistryProperties):
The plugin's needs to handle a new song creation
"""
pass
def get_visible_name(self):
"""
Returns the plugins visible name
"""
return str(self.get_string(StringContent.VisibleName)['title'])