Skip to content

Commit

Permalink
[bgw-gui] Removed path based imageVisual caching. (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
abouzerda authored Nov 21, 2023
1 parent b818038 commit 10a371a
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,7 @@ object VisualBuilder {
}

visual.imageProperty.setGUIListenerAndInvoke(visual.image) { _, nV ->
imageView.image =
cache[visual.path]
?: run {
val image = nV.readImage()
cache[visual.path] = image
return@run image
}
imageView.image = nV.readImage()
}

visual.transparencyProperty.setGUIListenerAndInvoke(visual.transparency) { _, nV ->
Expand Down

0 comments on commit 10a371a

Please sign in to comment.