Skip to content

Commit

Permalink
Now showing entry details in ResourcesView after entry creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Sep 16, 2022
1 parent e587158 commit 54c7da1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public ResourcesView() {
addEventHandler(REQUEST_ENTRY, evt -> maybeRunAndConsume(evt, e -> editEntry(evt.getEntry())));
}

private void maybeRunAndConsume(RequestEvent evt, Consumer<RequestEvent> runnable) {
private void maybeRunAndConsume(RequestEvent evt, Consumer<RequestEvent> consumer) {
if (!evt.isConsumed()) {
runnable.accept(evt);
consumer.accept(evt);
evt.consume();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ public CalendarViewSkin(CalendarView view) {
updateToggleButtons();
}

private void maybeRunAndConsume(RequestEvent evt, Consumer<RequestEvent> runnable) {
private void maybeRunAndConsume(RequestEvent evt, Consumer<RequestEvent> consumer) {
if (!evt.isConsumed()) {
runnable.accept(evt);
consumer.accept(evt);
evt.consume();
}
}
Expand Down

0 comments on commit 54c7da1

Please sign in to comment.