forked from openlp/openlp
Added confirmation message prior to re-start of FTW
This commit is contained in:
parent
f7a222da6c
commit
8800b41749
@ -725,9 +725,21 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
os.removedirs(temp_dir)
|
os.removedirs(temp_dir)
|
||||||
|
|
||||||
def onFirstTimeWizardClicked(self):
|
def onFirstTimeWizardClicked(self):
|
||||||
|
ret = QtGui.QMessageBox.warning(self,
|
||||||
|
translate('OpenLP.MainWindow', 'Re-Run First Time Wizard?'),
|
||||||
|
translate('OpenLP.MainWindow',
|
||||||
|
'Are you sure you want to run the First Time Wizard?\n\n' + \
|
||||||
|
'Re-running this wizard will make changes to your current ' + \
|
||||||
|
'OpenLP configuration, possibly add songs to your ' + \
|
||||||
|
'existing Songs list and change your Default Theme'),
|
||||||
|
QtGui.QMessageBox.StandardButtons(
|
||||||
|
QtGui.QMessageBox.Yes |
|
||||||
|
QtGui.QMessageBox.No),
|
||||||
|
QtGui.QMessageBox.Yes)
|
||||||
|
if ret == QtGui.QMessageBox.Yes:
|
||||||
Receiver.send_message(u'cursor_busy')
|
Receiver.send_message(u'cursor_busy')
|
||||||
screens = ScreenList.get_instance()
|
screens = ScreenList.get_instance()
|
||||||
FirstTimeForm(screens).exec_()
|
if FirstTimeForm(screens).exec_() == QtGui.QDialog.Accepted:
|
||||||
self.firstTime()
|
self.firstTime()
|
||||||
for plugin in self.pluginManager.plugins:
|
for plugin in self.pluginManager.plugins:
|
||||||
self.activePlugin = plugin
|
self.activePlugin = plugin
|
||||||
@ -739,6 +751,10 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
self.activePlugin.appStartup()
|
self.activePlugin.appStartup()
|
||||||
else:
|
else:
|
||||||
self.activePlugin.toggleStatus(PluginStatus.Inactive)
|
self.activePlugin.toggleStatus(PluginStatus.Inactive)
|
||||||
|
self.themeManagerContents.configUpdated()
|
||||||
|
self.themeManagerContents.loadThemes(True)
|
||||||
|
Receiver.send_message(u'theme_update_global',
|
||||||
|
self.themeManagerContents.global_theme)
|
||||||
|
|
||||||
def blankCheck(self):
|
def blankCheck(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user