From 484b1c227ea1a2d54c5603b2bf347342b0869488 Mon Sep 17 00:00:00 2001 From: Phill Ridout Date: Wed, 14 Jul 2010 21:34:14 +0100 Subject: [PATCH] Finally got round to sorting out the show/hide desktop. --- openlp/core/ui/maindisplay.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openlp/core/ui/maindisplay.py b/openlp/core/ui/maindisplay.py index b0ef8eaf4..2a573c554 100644 --- a/openlp/core/ui/maindisplay.py +++ b/openlp/core/ui/maindisplay.py @@ -358,6 +358,9 @@ class MainDisplay(DisplayWidget): else: self.displayBlank.setPixmap( QtGui.QPixmap.fromImage(self.blankFrame)) + if mode != HideMode.Screen and self.isHidden(): + self.setVisible(True) + def showDisplay(self, message=u''): """ @@ -367,6 +370,8 @@ class MainDisplay(DisplayWidget): """ log.debug(u'showDisplay') self.displayBlank.setPixmap(self.transparent) + if self.isHidden(): + self.setVisible(True) #Trigger actions when display is active again Receiver.send_message(u'maindisplay_active')