You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
when using ThemeRegistry.OnThemeChanged to update the UI, a StackOverflowException is thrown. The reason: ThemeRegistry currently calls the event handlers BEFORE the new theme is set. When the event handler tries to access the current Theme, the check is done again and as the current theme has not been updated yet, the events are triggered again.
Solution: Call handlers AFTER the new theme is set.
Describe the bug
when using
ThemeRegistry.OnThemeChanged
to update the UI, a StackOverflowException is thrown. The reason:ThemeRegistry
currently calls the event handlers BEFORE the new theme is set. When the event handler tries to access the current Theme, the check is done again and as the current theme has not been updated yet, the events are triggered again.Solution: Call handlers AFTER the new theme is set.
To Reproduce
Expected behavior
No exception should be thrown
The text was updated successfully, but these errors were encountered: