-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bag Frames Don't Update On Category Change #124
Comments
@Elberet
and https://github.com/doadin/Baggins/blob/main/Baggins-Options.lua#L3810 to:
|
Is that enough, tho? Suppose a character has dozens of stacks of cloth in their bag, wouldn't disabling compression almost certainly require resizing the bag frame? And if you also mark all bag frames as dirty, why not just call Alternatively, this appears to work, and requires much less new code:
|
@Elberet It was not enough to make the frames adjust, no but I think enough to update the sections for new settings. In my testing Baggins:RunBagUpdates() has a huge performance hit.(i was trying to improve this function as can be seen here: 6f1ca07) which cause some recent issues. Not sure about Baggins:ReallyUpdateBags() I am going to make those changes and test, thanks! |
Also im noticing you change Baggins_RefreshBags to take a force arg but don't set any frame or section as "dirty". does that not mean that none of the rest of the code is run other than FireSignal? could we not just run ReallyUpdateBags instead directly? |
@Elberet Instead of modifying Baggins_RefreshBags I tried replacing the call to the function with just Baggins:ReallyUpdateBags() (no call to Baggins_RefreshBags needed) instead and it seems to update just fine as well, maybe you could help verify this? |
These are the changes: 4d575f9 |
Looks good. I've added a similar call to the equipment set filter, see #126 |
notes:
From what I noticed in testing function Baggins:Baggins_CategoriesChanged() calls function Baggins:Baggins_RefreshBags() and at least for the "temp disable cmopression" option bags did not change unless I commented out "sectionframe.dirty" part of function Baggins:Baggins_RefreshBags() . Not sure if this would help on category change or if its a "proper" fix.
The text was updated successfully, but these errors were encountered: