mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Always close context menus
This commit is contained in:
parent
5ab9ff282a
commit
25822859c9
1 changed files with 7 additions and 1 deletions
|
@ -457,6 +457,7 @@ public abstract class StoreEntryComp extends SimpleComp {
|
|||
getWrapper()
|
||||
.runAction(leaf.createAction(getWrapper().getEntry().ref()), leaf.showBusy());
|
||||
});
|
||||
event.consume();
|
||||
});
|
||||
menu.getItems().add(run);
|
||||
|
||||
|
@ -475,6 +476,7 @@ public abstract class StoreEntryComp extends SimpleComp {
|
|||
.getName(getWrapper().getEntry().ref())
|
||||
.getValue() + ")");
|
||||
});
|
||||
event.consume();
|
||||
});
|
||||
menu.getItems().add(sc);
|
||||
|
||||
|
@ -486,6 +488,7 @@ public abstract class StoreEntryComp extends SimpleComp {
|
|||
AppActionLinkDetector.setLastDetectedAction(url);
|
||||
ClipboardHelper.copyUrl(url);
|
||||
});
|
||||
event.consume();
|
||||
});
|
||||
menu.getItems().add(l);
|
||||
}
|
||||
|
@ -500,10 +503,13 @@ public abstract class StoreEntryComp extends SimpleComp {
|
|||
return;
|
||||
}
|
||||
|
||||
event.consume();
|
||||
ThreadHelper.runFailableAsync(() -> {
|
||||
getWrapper().runAction(leaf.createAction(getWrapper().getEntry().ref()), leaf.showBusy());
|
||||
});
|
||||
event.consume();
|
||||
if (event.getTarget() instanceof Menu m) {
|
||||
m.getParentPopup().hide();
|
||||
}
|
||||
});
|
||||
|
||||
return item;
|
||||
|
|
Loading…
Reference in a new issue