Skip to content

Commit

Permalink
codestyle refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
abouzerda committed Nov 21, 2023
1 parent ed08d7f commit 75145a9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bgw-gui/src/main/kotlin/tools/aqua/bgw/builder/SceneBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ object SceneBuilder {

/** Builds a [Scene] pane. */
private fun buildPane(scene: Scene<*>): Pane {
// register animations
scene.animations.guiListener = { _, _ ->
scene.animations
.filter { t -> !t.isRunning }
.forEach { anim ->
AnimationBuilder.build(scene, anim).play()
anim.isRunning = true
}
}
// register animations
scene.animations.guiListener = { _, _ ->
scene.animations

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

View check run for this annotation

Codecov / codecov/patch

bgw-gui/src/main/kotlin/tools/aqua/bgw/builder/SceneBuilder.kt#L82-L83

Added lines #L82 - L83 were not covered by tests
.filter { t -> !t.isRunning }
.forEach { anim ->
AnimationBuilder.build(scene, anim).play()
anim.isRunning = true
}

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

View check run for this annotation

Codecov / codecov/patch

bgw-gui/src/main/kotlin/tools/aqua/bgw/builder/SceneBuilder.kt#L85-L88

Added lines #L85 - L88 were not covered by tests
}
val pane =
Pane().apply {
prefHeight = scene.height
Expand Down

0 comments on commit 75145a9

Please sign in to comment.