Skip to content
Snippets Groups Projects
Commit 4c406e81 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Overlay order of child DCs needs to be initialised, now that it is

unsynced by default.
parent 211668aa
No related branches found
No related tags found
No related merge requests found
......@@ -184,6 +184,15 @@ class DisplayContext(props.SyncableHasProperties):
self.__overlayList = overlayList
self.__name = '{}_{}'.format(self.__class__.__name__, id(self))
# The overlayOrder is unsynced by
# default, but we will inherit the
# current parent value. If this
# DC is a parent, the overlayOrder
# will be initialised in the call
# to __syncOverlayOrder, below.
if parent is not None:
self.overlayOrder[:] = parent.overlayOrder[:]
# Keep track of the overlay list length so
# we can do some things in the
# __overlayListChanged method. This if/else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment