forked from openlp/openlp
fixed bug 1147307 (Transtion + fast slide changes + ESC causes screen to open again)
Fixes: https://launchpad.net/bugs/1147307
This commit is contained in:
parent
a2fde046aa
commit
fac9f027e0
@ -362,6 +362,7 @@ class MainDisplay(Display):
|
|||||||
Generates a preview of the image displayed.
|
Generates a preview of the image displayed.
|
||||||
"""
|
"""
|
||||||
log.debug(u'preview for %s', self.isLive)
|
log.debug(u'preview for %s', self.isLive)
|
||||||
|
was_visible = self.isVisible()
|
||||||
Receiver.send_message(u'openlp_process_events')
|
Receiver.send_message(u'openlp_process_events')
|
||||||
# We must have a service item to preview.
|
# We must have a service item to preview.
|
||||||
if self.isLive and hasattr(self, u'serviceItem'):
|
if self.isLive and hasattr(self, u'serviceItem'):
|
||||||
@ -380,7 +381,8 @@ class MainDisplay(Display):
|
|||||||
if self.isLive:
|
if self.isLive:
|
||||||
if self.hideMode:
|
if self.hideMode:
|
||||||
self.hideDisplay(self.hideMode)
|
self.hideDisplay(self.hideMode)
|
||||||
else:
|
# Only continue if the visibility wasn't changed during method call.
|
||||||
|
elif was_visible == self.isVisible():
|
||||||
# Single screen active
|
# Single screen active
|
||||||
if self.screens.display_count == 1:
|
if self.screens.display_count == 1:
|
||||||
# Only make visible if setting enabled.
|
# Only make visible if setting enabled.
|
||||||
|
Loading…
Reference in New Issue
Block a user