diff --git a/src/main/kotlin/application/controller/MenuBarController.kt b/src/main/kotlin/application/controller/MenuBarController.kt index 672410a..c0d47aa 100644 --- a/src/main/kotlin/application/controller/MenuBarController.kt +++ b/src/main/kotlin/application/controller/MenuBarController.kt @@ -33,7 +33,7 @@ class MenuBarController : Initializable { var heatMap: CheckMenuItem = CheckMenuItem() @FXML - var activateReplayButton: RadioMenuItem = RadioMenuItem() + var activateTimeSliderButton: RadioMenuItem = RadioMenuItem() override fun initialize(location: URL?, resources: ResourceBundle?) { @@ -51,8 +51,8 @@ class MenuBarController : Initializable { } private fun setOnActionActivateReplayButton() { - activateReplayButton.onAction = EventHandler { - observableIsReplayState.value = activateReplayButton.isSelected + activateTimeSliderButton.onAction = EventHandler { + observableIsReplayState.value = activateTimeSliderButton.isSelected } } diff --git a/src/main/resources/gui/menuBar.fxml b/src/main/resources/gui/menuBar.fxml index ddc43d3..64f4510 100644 --- a/src/main/resources/gui/menuBar.fxml +++ b/src/main/resources/gui/menuBar.fxml @@ -18,7 +18,7 @@ - +