collapsedTemplates

private var collapsedTemplates: Collection<String>(source)

The list of currently-collapsed Templates by UUID.

This field is rather finicky. It is used in runPreservingState, which is used in reload, which may be invoked while the UI and the myModel are desynchronized. Therefore, in the getter, this field uses getUI to access the (possibly outdated) UI to determine which Templates have currently been collapsed. In the setter, meanwhile, all Templates are expanded except the given Templates, to ensure that new Templates (which were added in such a way as to cause desynchronization) are expanded by default.