Skip to content

Commit

Permalink
Ensure array dialog preview is up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
FWDekker committed Nov 17, 2023
1 parent 177c22c commit 745b9f7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ class TemplateInsertAction(
inner class ArrayDecoratorConfigurable(arrayDecorator: ArrayDecorator) : Configurable, Disposable {
private val editor =
ArrayDecoratorEditor(arrayDecorator, embedded = true)
.also { it.addChangeListener { it.apply() } }
.also { Disposer.register(this, it) }
private val previewPanel =
PreviewPanel { template.deepCopy().also { it.arrayDecorator.enabled = true } }
PreviewPanel { template.deepCopy(retainUuid = true).also { it.arrayDecorator.enabled = true } }
.also { Disposer.register(this, it) }


Expand Down

0 comments on commit 745b9f7

Please sign in to comment.