forked from openlp/openlp
Fix Theme handling so Song level works again
bzr-revno: 686
This commit is contained in:
parent
01cce5b4cd
commit
540f63c9de
@ -137,24 +137,20 @@ class ThemesTab(SettingsTab):
|
|||||||
self.config.set_config(u'theme level', self.theme_level)
|
self.config.set_config(u'theme level', self.theme_level)
|
||||||
self.config.set_config(u'global theme',self.global_theme)
|
self.config.set_config(u'global theme',self.global_theme)
|
||||||
Receiver.send_message(u'update_global_theme', self.global_theme)
|
Receiver.send_message(u'update_global_theme', self.global_theme)
|
||||||
|
self.parent.RenderManager.set_global_theme(
|
||||||
|
self.global_theme, self.theme_level)
|
||||||
|
|
||||||
def postSetUp(self):
|
def postSetUp(self):
|
||||||
Receiver.send_message(u'update_global_theme', self.global_theme)
|
Receiver.send_message(u'update_global_theme', self.global_theme)
|
||||||
|
|
||||||
def onSongLevelButtonPressed(self):
|
def onSongLevelButtonPressed(self):
|
||||||
self.global_style = u'Song'
|
self.theme_level = ThemeLevel.Song
|
||||||
self.parent.RenderManager.set_global_theme(
|
|
||||||
self.global_theme, self.theme_level)
|
|
||||||
|
|
||||||
def onServiceLevelButtonPressed(self):
|
def onServiceLevelButtonPressed(self):
|
||||||
self.global_style = u'Service'
|
self.theme_level = ThemeLevel.Service
|
||||||
self.parent.RenderManager.set_global_theme(
|
|
||||||
self.global_theme, self.theme_level)
|
|
||||||
|
|
||||||
def onGlobalLevelButtonPressed(self):
|
def onGlobalLevelButtonPressed(self):
|
||||||
self.global_style = u'Global'
|
self.theme_level = ThemeLevel.Global
|
||||||
self.parent.RenderManager.set_global_theme(
|
|
||||||
self.global_theme, self.theme_level)
|
|
||||||
|
|
||||||
def onDefaultComboBoxChanged(self, value):
|
def onDefaultComboBoxChanged(self, value):
|
||||||
self.global_theme = unicode(self.DefaultComboBox.currentText())
|
self.global_theme = unicode(self.DefaultComboBox.currentText())
|
||||||
|
Loading…
Reference in New Issue
Block a user