forked from openlp/openlp
allow last service to load on startup
This commit is contained in:
parent
095881cb90
commit
da75c96d03
@ -635,7 +635,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, LogMixin, RegistryPropert
|
|||||||
# if self.live_controller.display.isVisible():
|
# if self.live_controller.display.isVisible():
|
||||||
# self.live_controller.display.setFocus()
|
# self.live_controller.display.setFocus()
|
||||||
self.activateWindow()
|
self.activateWindow()
|
||||||
if self.application.args:
|
# We will aloways have 1 but more need to be processed
|
||||||
|
if self.application.args and len(self.application.args) > 1:
|
||||||
self.open_cmd_line_files(self.application.args)
|
self.open_cmd_line_files(self.application.args)
|
||||||
elif Settings().value(self.general_settings_section + '/auto open'):
|
elif Settings().value(self.general_settings_section + '/auto open'):
|
||||||
self.service_manager_contents.load_last_file()
|
self.service_manager_contents.load_last_file()
|
||||||
|
Loading…
Reference in New Issue
Block a user