Added a setting that hides/shows Projectors panel after first time wizard.

This still needs a visual UI (Aka checkbox to wizard)
This commit is contained in:
suutari-olli 2016-04-14 10:19:59 +03:00
parent 2b35156931
commit c9065a286a
3 changed files with 6 additions and 0 deletions

View File

@ -187,6 +187,7 @@ class Settings(QtCore.QSettings):
'user interface/main window state': QtCore.QByteArray(),
'user interface/preview panel': True,
'user interface/preview splitter geometry': QtCore.QByteArray(),
'user interface/projectors hidden in wizard': True,
'user interface/layout preset enabled': False,
'projector/db type': 'sqlite',
'projector/db username': '',

View File

@ -576,6 +576,7 @@ class FirstTimeForm(QtWidgets.QWizard, UiFirstTimeWizard, RegistryProperties):
self.progress_label.setText(translate('OpenLP.FirstTimeWizard',
'Click the %s button to start OpenLP.') %
clean_button_text(self.buttonText(QtWidgets.QWizard.FinishButton)))
Settings().setValue('user interface/projectors hidden in wizard', True)
self.finish_button.setVisible(True)
self.finish_button.setEnabled(True)
self.cancel_button.setVisible(False)

View File

@ -698,6 +698,10 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties):
return
self.application.set_busy_cursor()
self.first_time()
# if settings.value('%s/screen blank' % self.general_settings_section):
#if Settings().value('advanced/enable exit confirmation'):
if Settings().value('user interface/projectors hidden in wizard'):
self.projector_manager_dock.setVisible(False)
for plugin in self.plugin_manager.plugins:
self.active_plugin = plugin
old_status = self.active_plugin.status