forked from openlp/openlp
Fix Bug #793091 - if plugin changed status from inactive to active plugin.appStartup is called
This commit is contained in:
parent
a652c8ef59
commit
5505644176
@ -132,6 +132,9 @@ class PluginForm(QtGui.QDialog, Ui_PluginViewDialog):
|
|||||||
Receiver.send_message(u'cursor_busy')
|
Receiver.send_message(u'cursor_busy')
|
||||||
self.activePlugin.toggleStatus(PluginStatus.Active)
|
self.activePlugin.toggleStatus(PluginStatus.Active)
|
||||||
Receiver.send_message(u'cursor_normal')
|
Receiver.send_message(u'cursor_normal')
|
||||||
|
if hasattr(self.activePlugin, u'appStartup'):
|
||||||
|
Receiver.send_message(u'openlp_process_events')
|
||||||
|
self.activePlugin.appStartup()
|
||||||
else:
|
else:
|
||||||
self.activePlugin.toggleStatus(PluginStatus.Inactive)
|
self.activePlugin.toggleStatus(PluginStatus.Inactive)
|
||||||
status_text = unicode(
|
status_text = unicode(
|
||||||
|
Loading…
Reference in New Issue
Block a user