Skip to content

Commit

Permalink
Removed path based imageVisual caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
abouzerda committed Nov 21, 2023
1 parent e8deb9b commit e3a9003
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()

Check warning on line 98 in bgw-gui/src/main/kotlin/tools/aqua/bgw/builder/VisualBuilder.kt

View check run for this annotation

Codecov / codecov/patch

bgw-gui/src/main/kotlin/tools/aqua/bgw/builder/VisualBuilder.kt#L98

Added line #L98 was not covered by tests
}

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

0 comments on commit e3a9003

Please sign in to comment.