Ace3: Profile reset does not refresh config dialog?
Hey,
I wonder how I can refresh the ace config dialog after I perform a profile reset (using Ace3). Lua Code:
Lua Code:
When I press the "Reset Profile" button all my settings are getting reset but the ace config dialog which is currently open and where I pressed the reset profile button in is not updating to the new state. I need to reload the UI to get the config dialog to show the new state. But that is not all, the options are also all broken. Those settings which got reset cant get configured by ace config dialog anymore until I reloaded the UI. Nothing happens when I use them without reloading the UI. I tried using: Lua Code:
But it has no effect. I would expect that the config dialog refreshes automatically after I reset the profile through ace3 internal functions. Is there any way I can refresh the config dialog without reloading the UI? |
Resetting the profile DOES reset the config dialog. The code above works perfectly.
The error in my case was caused by something different, hidden deep inside the code. |
There is no need to use NotifyChange unless you alter the settings via an external method like a LDB display or minimap button.
Other issues:
Code:
local MyAddOn = LibStub("AceAddon-3.0"):NewAddon("MyAddOn") |
All times are GMT -6. The time now is 08:20 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI