Show Splash screen option now works

This commit is contained in:
Tim Bentley 2009-10-17 14:29:01 +01:00
parent 7ae0e045d3
commit 1082428926
2 changed files with 15 additions and 14 deletions

View File

@ -25,7 +25,7 @@
import logging
from PyQt4 import QtCore, QtGui
from openlp.core.lib import Receiver
from openlp.core.lib import Receiver, str_to_bool
class MainDisplay(QtGui.QWidget):
"""
@ -87,6 +87,7 @@ class MainDisplay(QtGui.QWidget):
else:
self.showMinimized()
#Build a custom splash screen
if str_to_bool(self.parent.generalConfig.get_config(u'show splash', u'True')):
self.InitialFrame = QtGui.QImage(
screen[u'size'].width(), screen[u'size'].height(),
QtGui.QImage.Format_ARGB32_Premultiplied)

View File

@ -418,8 +418,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
self.screenList = screens
self.serviceNotSaved = False
self.settingsmanager = SettingsManager(screens)
self.mainDisplay = MainDisplay(self, screens)
self.generalConfig = PluginConfig(u'General')
self.mainDisplay = MainDisplay(self, screens)
self.alertForm = AlertForm(self)
self.aboutForm = AboutForm(self)
self.settingsForm = SettingsForm(self.screenList, self)