forked from openlp/openlp
This commit is contained in:
parent
1c35810fa5
commit
5589c24cbf
@ -572,31 +572,12 @@ class SlideController(QtGui.QWidget):
|
|||||||
if self.serviceItem.is_command():
|
if self.serviceItem.is_command():
|
||||||
Receiver.send_message(u'%s_stop' %
|
Receiver.send_message(u'%s_stop' %
|
||||||
self.serviceItem.name.lower(), [serviceItem, self.isLive])
|
self.serviceItem.name.lower(), [serviceItem, self.isLive])
|
||||||
# If the old item had its own display, we have to restore the menu.
|
|
||||||
if self.isLive and self.serviceItem.is_capable(
|
|
||||||
ItemCapabilities.ProvidesOwnDisplay):
|
|
||||||
self.toolbar.actions[u'Hide Menu'].setVisible(True)
|
|
||||||
action = self.hideMenu.defaultAction()
|
|
||||||
# Re check the current blank mode, so that the current item will
|
|
||||||
# not ignore it.
|
|
||||||
if self.blankScreen == action:
|
|
||||||
self.onBlankDisplay(action.isChecked())
|
|
||||||
elif self.themeScreen == action:
|
|
||||||
self.onThemeDisplay(action.isChecked())
|
|
||||||
elif self.desktopScreen == action:
|
|
||||||
self.onHideDisplay(action.isChecked())
|
|
||||||
if self.serviceItem.is_media():
|
if self.serviceItem.is_media():
|
||||||
self.onMediaClose()
|
self.onMediaClose()
|
||||||
blanked = False
|
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
if serviceItem.is_capable(ItemCapabilities.ProvidesOwnDisplay):
|
blanked = self.blankScreen.isChecked()
|
||||||
# Hide the menu and the screen. Note, that we do not want to use
|
else:
|
||||||
# onHideDisplay, as we want to be able to restore the current
|
blanked = False
|
||||||
# hide mode.
|
|
||||||
self.toolbar.actions[u'Hide Menu'].setVisible(False)
|
|
||||||
Receiver.send_message(u'maindisplay_hide', HideMode.Screen)
|
|
||||||
else:
|
|
||||||
blanked = self.blankScreen.isChecked()
|
|
||||||
Receiver.send_message(u'%s_start' % serviceItem.name.lower(),
|
Receiver.send_message(u'%s_start' % serviceItem.name.lower(),
|
||||||
[serviceItem, self.isLive, blanked, slideno])
|
[serviceItem, self.isLive, blanked, slideno])
|
||||||
self.slideList = {}
|
self.slideList = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user