Skip to content

Clear 'forward' checkpoints (clear redo stack) #105

@ghost

Description

Is your feature request related to a problem? Please describe.
After checkpoints.goBackward(), I want to make it impossible to redo the changes.

Describe the solution you'd like
A method to clear the 'forward' checkpoints: e.g. checkpoints.clearForwardCheckpoints() or checkpoints.delForwardCheckpoints().

Describe alternatives you've considered
I thought about implementing this by adding a dummy (noop) checkpoint after going backward, because then the forward checkpoints effectively get cleared. However, adding a checkpoint without changes does not do anything, so this does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    please verifyCould you see if this is better now?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions