forked from openlp/openlp
Added this to program startup code, should replace_service_manager_item ever crash the program.
Settings().setValue('core/is live item edited and replaced', False)
This commit is contained in:
parent
c1d9991acb
commit
31ede5556d
@ -652,6 +652,9 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties):
|
||||
"""
|
||||
Give all the plugins a chance to perform some tasks at startup
|
||||
"""
|
||||
# This setting is set to false, in case def replace_service_manager_item in slidecontroller would crash the
|
||||
# program and make blank to modes unavailable.
|
||||
Settings().setValue('core/is live item edited and replaced', False)
|
||||
self.application.process_events()
|
||||
for plugin in self.plugin_manager.plugins:
|
||||
if plugin.is_active():
|
||||
|
@ -792,6 +792,7 @@ class SlideController(DisplayController, RegistryProperties):
|
||||
This action also takes place when a song that is sent to live from Service Manager is edited.
|
||||
If display is blanked, it will get unblanked if automatic unblanking is enabled. We prevent this from happening
|
||||
by setting a hidden setting to "True" and then to "False" after the processing is done.
|
||||
The setting is also set to "False" on every start up, should the program ever crash during this process.
|
||||
|
||||
:param item: The current service item
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user