FXMisc / UndoFX

Undo manager for JavaFX
BSD 2-Clause "Simplified" License
98 stars 17 forks source link

Feature: UndoManager prevents next change from merging after period of inactivity #21

Closed JordanMartinez closed 6 years ago

JordanMartinez commented 7 years ago

Coming from TomasMikula/RichTextFX#362, and its solution (TomasMikula/RichTextFX#530)...

We only need to add a Duration parameter to the UndoManagerImpl's constructor, so that the UndoManager's subscription will also unsubscribe the Subscription returned from changeSource.successionEnds(delay).subscribe(ignore -> preventMerge());

JordanMartinez commented 6 years ago

Closed by #22