forked from openlp/openlp
Added code to reload Bible list after first time wizard is rerun
bzr-revno: 1731
This commit is contained in:
commit
7cbccb6b70
@ -791,6 +791,9 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
self.themeManagerContents.loadThemes(True)
|
self.themeManagerContents.loadThemes(True)
|
||||||
Receiver.send_message(u'theme_update_global',
|
Receiver.send_message(u'theme_update_global',
|
||||||
self.themeManagerContents.global_theme)
|
self.themeManagerContents.global_theme)
|
||||||
|
# Check if any Bibles downloaded. If there are, they will be
|
||||||
|
# processed.
|
||||||
|
Receiver.send_message(u'bibles_load_list', True)
|
||||||
|
|
||||||
def blankCheck(self):
|
def blankCheck(self):
|
||||||
"""
|
"""
|
||||||
|
@ -391,10 +391,13 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
elif len(bibles):
|
elif len(bibles):
|
||||||
self.initialiseAdvancedBible(bibles[0])
|
self.initialiseAdvancedBible(bibles[0])
|
||||||
|
|
||||||
def reloadBibles(self):
|
def reloadBibles(self, process=False):
|
||||||
log.debug(u'Reloading Bibles')
|
log.debug(u'Reloading Bibles')
|
||||||
self.plugin.manager.reload_bibles()
|
self.plugin.manager.reload_bibles()
|
||||||
self.loadBibles()
|
self.loadBibles()
|
||||||
|
# If called from first time wizard re-run, process any new bibles.
|
||||||
|
if process:
|
||||||
|
self.plugin.appStartup()
|
||||||
self.updateAutoCompleter()
|
self.updateAutoCompleter()
|
||||||
|
|
||||||
def initialiseAdvancedBible(self, bible):
|
def initialiseAdvancedBible(self, bible):
|
||||||
|
Loading…
Reference in New Issue
Block a user