From ba9ead724f4b7d17c7131bc66ba858dfe9a5edf9 Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 11 Sep 2024 22:31:45 +0000 Subject: [PATCH] Show copy id action when api is enabled --- app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java b/app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java index c0811869a..94883bd98 100644 --- a/app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java +++ b/app/src/main/java/io/xpipe/app/comp/store/StoreEntryComp.java @@ -330,7 +330,9 @@ public abstract class StoreEntryComp extends SimpleComp { browse.setOnAction(event -> DesktopHelper.browsePathLocal(getWrapper().getEntry().getDirectory())); contextMenu.getItems().add(browse); + } + if (AppPrefs.get().enableHttpApi().get()) { var copyId = new MenuItem(AppI18n.get("copyId"), new FontIcon("mdi2c-content-copy")); copyId.setOnAction(event -> ClipboardHelper.copyText(getWrapper().getEntry().getUuid().toString()));