Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements for UndoRedo class #47663

Open
wants to merge 3 commits into
base: 3.x
Choose a base branch
from
Open

Conversation

deakcor
Copy link
Contributor

@deakcor deakcor commented Apr 6, 2021

Added some improvements for UndoRedo class :

  • Added has_uncommitted_action() method to check if there is an uncommitted action.
  • Added get_action_count() and get_action_name() methods to make additionnal checks. (For example, if you need to check for a specific panel if there still are some unmodified inputs when undo)
  • Added apply_redo optional parameter for commit_action to be able to have a different function for do() and redo().

@deakcor deakcor requested a review from a team as a code owner April 6, 2021 14:11
@Calinou Calinou added this to the 3.4 milestone Apr 6, 2021
@Calinou
Copy link
Member

Calinou commented Apr 6, 2021

See also #41193 and #43872 which are for the master branch.

@Chaosus Chaosus modified the milestones: 3.4, 3.5 Nov 8, 2021
@akien-mga akien-mga force-pushed the 3.x branch 2 times, most recently from 71cb8d3 to c58391c Compare January 6, 2022 22:40
@akien-mga akien-mga modified the milestones: 3.5, 3.x Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants