forked from openlp/openlp
Add feedback for Custom Slide generation #73
This commit is contained in:
parent
db64a7d5bf
commit
dc168b2fdf
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user