Skip to content
This repository was archived by the owner on Jan 16, 2019. It is now read-only.

Pass the UndoToken to onHide as well #13

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

lroessler
Copy link

pass the token to the listener onHide as well (not just in onUndo). this is useful for doing stuff that is not actually undoable and should only be executed after the user had his chance to undo.
Also included a little fix to avoid a (very very unlikely) race condition.

…his is useful for doing stuff that is not actually undoable and should only be executed after the user had his chance to undo
… up in safelyNotifyOnUndo. Although it's super unlikely that this actually happens I think it's cleaner to first grab a reference
@sompor038
Copy link

love

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants