From 402130811ec893696e5da0a17a68d852139c1956 Mon Sep 17 00:00:00 2001 From: Denis-Cosmin NUTIU Date: Wed, 10 Apr 2024 00:24:21 +0300 Subject: [PATCH] ImageTagsSessionHeader: set on action dynamically for show open directory button & change text to open folder --- .../nuculabs/imagetagger/ui/controls/ImageTagsSessionHeader.kt | 3 +++ .../imagetagger/ui/controls/image-tags-session-header.fxml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsSessionHeader.kt b/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsSessionHeader.kt index feb8603..389acaf 100644 --- a/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsSessionHeader.kt +++ b/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsSessionHeader.kt @@ -45,6 +45,9 @@ class ImageTagsSessionHeader : HBox() { } updateHeader(0) + openDirectoryButton.setOnAction { + openDirectory() + } } /** diff --git a/img-ui/src/main/resources/dev/nuculabs/imagetagger/ui/controls/image-tags-session-header.fxml b/img-ui/src/main/resources/dev/nuculabs/imagetagger/ui/controls/image-tags-session-header.fxml index bc5ecfd..358fda7 100644 --- a/img-ui/src/main/resources/dev/nuculabs/imagetagger/ui/controls/image-tags-session-header.fxml +++ b/img-ui/src/main/resources/dev/nuculabs/imagetagger/ui/controls/image-tags-session-header.fxml @@ -12,7 +12,7 @@