mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +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 ->
|
browse.setOnAction(event ->
|
||||||
DesktopHelper.browsePathLocal(getWrapper().getEntry().getDirectory()));
|
DesktopHelper.browsePathLocal(getWrapper().getEntry().getDirectory()));
|
||||||
contextMenu.getItems().add(browse);
|
contextMenu.getItems().add(browse);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (AppPrefs.get().enableHttpApi().get()) {
|
||||||
var copyId = new MenuItem(AppI18n.get("copyId"), new FontIcon("mdi2c-content-copy"));
|
var copyId = new MenuItem(AppI18n.get("copyId"), new FontIcon("mdi2c-content-copy"));
|
||||||
copyId.setOnAction(event ->
|
copyId.setOnAction(event ->
|
||||||
ClipboardHelper.copyText(getWrapper().getEntry().getUuid().toString()));
|
ClipboardHelper.copyText(getWrapper().getEntry().getUuid().toString()));
|
||||||
|
|
Loading…
Reference in a new issue