mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-15 16:59:00 +12:00
Small additional fixes [release]
This commit is contained in:
parent
0beee48a78
commit
0576fc22ec
1 changed files with 8 additions and 6 deletions
|
@ -142,12 +142,6 @@ public class StoreEntryComp extends SimpleComp {
|
||||||
|
|
||||||
grid.getStyleClass().add("store-entry-grid");
|
grid.getStyleClass().add("store-entry-grid");
|
||||||
|
|
||||||
grid.setOnMouseClicked(event -> {
|
|
||||||
if (entry.getEditable().get()) {
|
|
||||||
entry.editDialog();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
applyState(grid);
|
applyState(grid);
|
||||||
|
|
||||||
var button = new JFXButton();
|
var button = new JFXButton();
|
||||||
|
@ -155,6 +149,14 @@ public class StoreEntryComp extends SimpleComp {
|
||||||
GrowAugment.create(true, false).augment(new SimpleCompStructure<>(grid));
|
GrowAugment.create(true, false).augment(new SimpleCompStructure<>(grid));
|
||||||
button.getStyleClass().add("store-entry-comp");
|
button.getStyleClass().add("store-entry-comp");
|
||||||
button.setMaxWidth(2000);
|
button.setMaxWidth(2000);
|
||||||
|
button.setFocusTraversable(false);
|
||||||
|
button.setOnAction(event -> {
|
||||||
|
event.consume();
|
||||||
|
if (entry.getEditable().get()) {
|
||||||
|
entry.editDialog();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue