forked from openlp/openlp
hook up themes to combo boxes
This commit is contained in:
parent
0ffd58346b
commit
df0fd5b618
@ -224,7 +224,8 @@ class ThemeManager(QWidget):
|
||||
self.themeData.addRow(os.path.join(self.path, name))
|
||||
self.EventManager.post_event(Event(EventType.ThemeListChanged))
|
||||
self.ServiceManager.updateThemeList(self.getThemes())
|
||||
#self.themeTab.updateThemeList(self.getThemes())
|
||||
self.parent.settings_form.ThemesTab.updateThemeList(self.getThemes())
|
||||
|
||||
|
||||
def getThemes(self):
|
||||
return self.themeData.getList()
|
||||
|
@ -85,7 +85,7 @@ class BiblePlugin(Plugin):
|
||||
log.debug(u'Handle event called with event %s with payload %s'%(event.event_type, event.payload))
|
||||
if event.event_type == EventType.ThemeListChanged:
|
||||
log.debug(u'New Theme request received')
|
||||
#self.edit_custom_form.loadThemes(self.theme_manager.getThemes())
|
||||
self.bibles_tab.updateThemeList(self.theme_manager.getThemes())
|
||||
if event.event_type == EventType.LoadServiceItem and event.payload == 'Bibles':
|
||||
log.debug(u'Load Service Item received')
|
||||
self.media_item.onBibleAddClick()
|
||||
|
@ -205,3 +205,11 @@ class BiblesTab(SettingsTab):
|
||||
self.config.set_config("display brackets", str(self.display_style))
|
||||
self.config.set_config("search as type", str(self.bible_search))
|
||||
self.config.set_config("bible theme", str(self.bible_theme))
|
||||
|
||||
def updateThemeList(self, theme_list):
|
||||
"""
|
||||
Called from ThemeManager when the Themes have changed
|
||||
"""
|
||||
self.BibleThemeComboBox.clear()
|
||||
for theme in theme_list:
|
||||
self.BibleThemeComboBox.addItem(theme)
|
||||
|
Loading…
Reference in New Issue
Block a user