mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Show copy id action when api is enabled
This commit is contained in:
parent
c38962ef2e
commit
ba9ead724f
1 changed files with 2 additions and 0 deletions
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue