mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Fix last used time not updating
This commit is contained in:
parent
acebff1445
commit
8117b228ee
1 changed files with 7 additions and 6 deletions
|
@ -98,7 +98,9 @@ public class StoreEntryComp extends SimpleComp {
|
|||
private Node createIcon() {
|
||||
var img = entry.isDisabled()
|
||||
? "disabled_icon.png"
|
||||
: entry.getEntry().getProvider().getDisplayIconFileName(entry.getEntry().getStore());
|
||||
: entry.getEntry()
|
||||
.getProvider()
|
||||
.getDisplayIconFileName(entry.getEntry().getStore());
|
||||
var imageComp = new PrettyImageComp(new SimpleStringProperty(img), 55, 45);
|
||||
var storeIcon = imageComp.createRegion();
|
||||
storeIcon.getStyleClass().add("icon");
|
||||
|
@ -155,14 +157,12 @@ public class StoreEntryComp extends SimpleComp {
|
|||
ThreadHelper.runFailableAsync(() -> {
|
||||
var found = entry.getDefaultActionProvider().getValue();
|
||||
if (found != null) {
|
||||
found
|
||||
.createAction(entry.getEntry().getStore().asNeeded())
|
||||
.execute();
|
||||
entry.getEntry().updateLastUsed();
|
||||
found.createAction(entry.getEntry().getStore().asNeeded()).execute();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
new PopupMenuAugment<>(false) {
|
||||
@Override
|
||||
protected ContextMenu createContextMenu() {
|
||||
|
@ -177,7 +177,8 @@ public class StoreEntryComp extends SimpleComp {
|
|||
var list = new ArrayList<Comp<?>>();
|
||||
for (var p : entry.getActionProviders().entrySet()) {
|
||||
var actionProvider = p.getKey().getDataStoreCallSite();
|
||||
if (!actionProvider.isMajor() || p.getKey().equals(entry.getDefaultActionProvider().getValue())) {
|
||||
if (!actionProvider.isMajor()
|
||||
|| p.getKey().equals(entry.getDefaultActionProvider().getValue())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue