-
Notifications
You must be signed in to change notification settings - Fork 86
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
Update current theme after loadThemes call is done #4685
Update current theme after loadThemes call is done #4685
Conversation
Co-Authored-By: pfirpfel <[email protected]>
6faf3de
to
47910ed
Compare
@fredj Do you know why we have this |
One reason I see, is that every login and logout produces a second call with gmf.AuthenticationEventType.READY. May be we can remove this if clause and change the listener to listenOnce below:
|
Currently, the updateCurrentTheme_ call happens before the loadThemes call. This is problematic if you log in as an user who has a default theme that is non-public. At the time updateCurrentTheme_ gets called, this non-public theme is not available. It will be, after the loadThemes call has finished. That's why updateCurrentTheme_ should happen after loadThemes.