Fix PresentationPlugin finalising

This commit is contained in:
Jon Tibble 2009-10-28 22:22:35 +00:00
parent fcd5836e0f
commit 5ed004c772
1 changed files with 5 additions and 9 deletions

View File

@ -62,7 +62,11 @@ class PresentationPlugin(Plugin):
def finalise(self):
log.info(u'Plugin Finalise')
Plugin.finalise(self)
#Ask each controller to tidy up
for key in self.controllers:
controller = self.controllers[key]
if controller.enabled:
controller.kill()
self.remove_toolbox_item()
def get_media_manager_item(self):
@ -105,13 +109,5 @@ class PresentationPlugin(Plugin):
else:
return False
def finalise(self):
log.debug(u'Finalise')
#Ask each controller to tidy up
for key in self.controllers:
controller = self.controllers[key]
if controller.enabled:
controller.kill()
def about(self):
return u'<b>Presentation Plugin</b> <br> Delivers the ability to show presentations using a number of different programs. The choice of available presentaion programs is available in a drop down.'