-
-
Notifications
You must be signed in to change notification settings - Fork 321
fixes #5817
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
fixes #5817
Conversation
Example aura for the states:Replace function:
|
@@ -43,30 +43,52 @@ local removeAll = function(states) | |||
return changed | |||
end | |||
|
|||
local function recurseUpdate(t1, t2) | |||
local skipKeys = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't quite understand the point of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fixes the bug with
function(states, event, updatedTriggerNumber, state)
if event == "TRIGGER" and state then
states:Update("", state[""])
end
end
copying state[""].trigger into states[""].trigger which resulted in WeakAurasOptions replacing the custom trigger view with a copy of the view of an other trigger, cf https://discord.com/channels/172440238717665280/598903823800467496/1360233139452121088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the trigger/triggernum thing is a fine temp fix IMO, do you want to rebase/squash before merging?
new functions: states:Replace(key, newState) works like the Update function but set to nil fields missing in the new table states:Get:(key, field?) returns a state table, or one of it's fields if the parameter "field" is set, returns nil if it doesn't exists bug fixes: recurseUpdate should copy content of new tables instead of it's address don't copy the fields trigger & triggernum into allStates (this needs to be properly addressed)
No description provided.