-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix Reskinning of buttons that were skinned, but are in a disabled group #298
Conversation
In WeakAuras we heavly reuse buttons even between groups. In the issue a button that was previously in a enabled group is now moved to a disabled group. In that case there's a skin on it (that is it has Regions), so ReSkin should apply the default skin again. Fixes WeakAuras Issue: WeakAuras/WeakAuras2#4168
@StormFX I don't know whether that's the correct fix, since I don't really have a good understanding of the Masque internals. But I think Reskin should for buttons that were at one point skinned, do the same as RemoveButton would do. That is call SkinButton(Button, Regions, false). I suspect that AddButton should actually have a similar fix. If the group is disabled, but the button was skinned (that is has regions), then it should be skinned via SkinButton(Button, Regions, false). But I didn't include that in this PR as I wasn't sure whether my fix is even correct. |
|
FWIW, I'm already working on some minor API changes so I'll add this to my list. I've moved this to #299. |
Feel free to ping me if you have something to test or need more information. |
Thanks, I'll forward that message. |
I'll be dropping a beta soon, so someone may want to test that specifically. |
Hey, I have been running into an issue with my WA where some icons sometimes appeared to get rescaled randomly. After quite of bit of searching I figured out it was linked to Masque and ended up here. Now the issue seems to match this bug, as it only happens when I have masque enabled but disabled for the icons of my WA. Trouble is, I am currently on version 10.0.5 of Masque, which I think should already have the fix you mention above? This is on the WotLK Classic version of WoW. |
I've moved the conversation to #308, as to keep it separate and to avoid notification spam for others who may be subscribed to this pull request. |
In WeakAuras we heavly reuse buttons even between groups. In the issue a button that was previously in a enabled group is now moved to a disabled group. In that case there's a skin on it (that is it has Regions), so ReSkin should apply the default skin again.
Fixes WeakAuras Issue:
WeakAuras/WeakAuras2#4168