Fix ChangeManagerWrapper #8

Merged
kske merged 1 commits from b/javafx-wrapper-properties into develop 2021-12-25 21:14:54 +01:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 7101523584 - Show all commits

View File

@ -47,6 +47,7 @@ public class ChangeManagerWrapper<C extends Change, M extends ChangeManager<C>>
*/ */
public ChangeManagerWrapper(M manager) { public ChangeManagerWrapper(M manager) {
this.manager = manager; this.manager = manager;
updateProperties();
} }
@Override @Override

View File

@ -21,7 +21,7 @@ public interface ObservableChangeManager<C extends Change> extends ChangeManager
@Override @Override
default Optional<C> getLastChange() { default Optional<C> getLastChange() {
return Optional.of(lastChangeProperty().get()); return Optional.ofNullable(lastChangeProperty().get());
} }
ReadOnlyBooleanProperty atMarkedChangeProperty(); ReadOnlyBooleanProperty atMarkedChangeProperty();