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:
suutari-olli 2016-04-27 23:38:46 +03:00
parent c1d9991acb
commit 31ede5556d
2 changed files with 4 additions and 0 deletions

View File

@ -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():

View File

@ -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
"""