Made a better fix for fixing bug where display is unblanked on editing current live item.

This now sets a hidden setting to true while processing Live item and then changes it back to false.
Display is thus not unblanked at all during the process. (Old fix showed the edited slide for a small time)

Downside: All the new tests were based on the old method and thus they were removed.
This commit is contained in:
suutari-olli 2016-04-17 06:50:54 +03:00
parent 0563c6372f
commit c046ba95d9

View File

@ -790,10 +790,8 @@ class SlideController(DisplayController, RegistryProperties):
""" """
Replacement item following a remote edit Replacement item following a remote edit
This action also takes place when a song that is sent to live from Service Manager is edited. This action also takes place when a song that is sent to live from Service Manager is edited.
If display is blanked, this will update the song and then re-blank the display. If display is blanked, it will get unblanked if automatic unblanking is enabled. We prevent this from happening
As result, lyrics are flashed on screen for a very short time before re-blanking happens. (Bug) by setting a hidden setting to "True" and then to "False" after the processing is done.
This happens only when Automatic unblanking is enabled when new item is sen to Live,
if it's not enabled they won't flash.
:param item: The current service item :param item: The current service item
""" """