From 862dc9b51b4527952e42d2f5cfc456af3c9a6dfd Mon Sep 17 00:00:00 2001 From: lsagona Date: Wed, 2 Sep 2020 15:17:16 +0200 Subject: [PATCH] rename an element of the menu --- src/main/kotlin/application/controller/MenuBarController.kt | 6 +++--- src/main/resources/gui/menuBar.fxml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 @@ - + -- 1.7.10.4