Add context menu to copy single result info

This commit is contained in:
Armin Schrenk
2022-11-29 14:18:43 +01:00
parent 5f55530b4a
commit 9cec45dc1f
2 changed files with 23 additions and 1 deletions
@@ -9,6 +9,8 @@
<?import org.cryptomator.ui.controls.FontAwesome5IconView?>
<?import javafx.scene.layout.Region?>
<?import javafx.scene.control.ChoiceBox?>
<?import javafx.scene.control.ContextMenu?>
<?import javafx.scene.control.MenuItem?>
<VBox xmlns:fx="http://javafx.com/fxml"
xmlns="http://javafx.com/javafx"
fx:controller="org.cryptomator.ui.health.CheckDetailController"
@@ -51,6 +53,14 @@
<Label text="Fix state" labelFor="${fixStateChoiceBox}"/>
<ChoiceBox fx:id="fixStateChoiceBox" />
</HBox>
<ListView fx:id="resultsListView" VBox.vgrow="ALWAYS" visible="${!controller.checkSkipped}" fixedCellSize="25"/>
<ListView fx:id="resultsListView" VBox.vgrow="ALWAYS" visible="${!controller.checkSkipped}" fixedCellSize="25">
<contextMenu>
<ContextMenu>
<items>
<MenuItem text="%generic.button.copy" onAction="#copyResultDetails"/>
</items>
</ContextMenu>
</contextMenu>
</ListView>
</VBox>
</VBox>