forked from openlp/openlp
Fix screen display setup when returning from presentations
This commit is contained in:
parent
3baf2f2f7b
commit
dc7148b76e
@ -131,7 +131,8 @@ class OpenLP(QtGui.QApplication):
|
|||||||
if show_splash:
|
if show_splash:
|
||||||
# now kill the splashscreen
|
# now kill the splashscreen
|
||||||
self.splash.finish(self.mainWindow)
|
self.splash.finish(self.mainWindow)
|
||||||
#self.mainWindow.versionCheck()
|
self.mainWindow.repaint()
|
||||||
|
self.mainWindow.versionCheck()
|
||||||
return self.exec_()
|
return self.exec_()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -183,10 +183,13 @@ class MainDisplay(DisplayWidget):
|
|||||||
else:
|
else:
|
||||||
self.setVisible(False)
|
self.setVisible(False)
|
||||||
self.primary = True
|
self.primary = True
|
||||||
|
self.repaint()
|
||||||
|
|
||||||
def resetDisplay(self):
|
def resetDisplay(self):
|
||||||
if self.primary:
|
if self.primary:
|
||||||
self.setVisible(False)
|
self.setVisible(False)
|
||||||
|
else:
|
||||||
|
self.showFullScreen()
|
||||||
|
|
||||||
def hideDisplay(self):
|
def hideDisplay(self):
|
||||||
self.setVisible(False)
|
self.setVisible(False)
|
||||||
@ -194,6 +197,7 @@ class MainDisplay(DisplayWidget):
|
|||||||
def showDisplay(self):
|
def showDisplay(self):
|
||||||
if not self.primary:
|
if not self.primary:
|
||||||
self.setVisible(True)
|
self.setVisible(True)
|
||||||
|
self.showFullScreen()
|
||||||
|
|
||||||
def addImageWithText(self, frame):
|
def addImageWithText(self, frame):
|
||||||
frame = resize_image(frame,
|
frame = resize_image(frame,
|
||||||
@ -252,8 +256,11 @@ class MainDisplay(DisplayWidget):
|
|||||||
display text
|
display text
|
||||||
"""
|
"""
|
||||||
log.debug(u'display alert called %s' % text)
|
log.debug(u'display alert called %s' % text)
|
||||||
|
self.parent.StatusBar.showMessage(self.trUtf8(u''))
|
||||||
self.alertList.append(text)
|
self.alertList.append(text)
|
||||||
if self.timer_id != 0 or self.mediaLoaded:
|
if self.timer_id != 0 or self.mediaLoaded:
|
||||||
|
self.parent.StatusBar.showMessage(\
|
||||||
|
self.trUtf8(u'Alert message created and delayed'))
|
||||||
return
|
return
|
||||||
self.generateAlert()
|
self.generateAlert()
|
||||||
|
|
||||||
@ -343,4 +350,5 @@ class MainDisplay(DisplayWidget):
|
|||||||
self.mediaLoaded = False
|
self.mediaLoaded = False
|
||||||
self.video.setVisible(False)
|
self.video.setVisible(False)
|
||||||
self.display_text.show()
|
self.display_text.show()
|
||||||
|
self.display_image.show()
|
||||||
self.blankDisplay(False)
|
self.blankDisplay(False)
|
||||||
|
@ -581,8 +581,6 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
self.trUtf8('The Main Display has been blanked out'),
|
self.trUtf8('The Main Display has been blanked out'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok),
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok),
|
||||||
QtGui.QMessageBox.Ok)
|
QtGui.QMessageBox.Ok)
|
||||||
self.repaint()
|
|
||||||
self.versionCheck()
|
|
||||||
|
|
||||||
def onHelpAboutItemClicked(self):
|
def onHelpAboutItemClicked(self):
|
||||||
"""
|
"""
|
||||||
|
@ -1 +1 @@
|
|||||||
1.9.0-696
|
1.9.0-697
|
||||||
|
Loading…
Reference in New Issue
Block a user