Merge pull request 'Correctly Deal with Identity Changes and Divergent History' (#5) from b/divergent-history into develop
All checks were successful
zdm/undo-redo/pipeline/head This commit looks good
All checks were successful
zdm/undo-redo/pipeline/head This commit looks good
Reviewed-on: https://git.kske.dev/zdm/undo-redo/pulls/5 Reviewed-by: delvh <leon@kske.dev>
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>javafx</artifactId>
|
||||
<artifactId>undo-redo-javafx</artifactId>
|
||||
<name>Undo-Redo JavaFX Integration</name>
|
||||
|
||||
<parent>
|
||||
|
@ -50,9 +50,12 @@ public class ChangeManagerWrapper<C extends Change, M extends ChangeManager<C>>
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addChange(C change) {
|
||||
manager.addChange(change);
|
||||
updateProperties();
|
||||
public boolean addChange(C change) {
|
||||
if (manager.addChange(change)) {
|
||||
updateProperties();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user