runPreservingState

private fun runPreservingState(lambda: () -> Unit)(source)

Runs lambda while ensuring that the selectedScheme and collapsed templates remain unchanged.