diff --git a/contribs/gmf/src/controllers/abstract.js b/contribs/gmf/src/controllers/abstract.js index 528d635f76ce..5f67b014852d 100644 --- a/contribs/gmf/src/controllers/abstract.js +++ b/contribs/gmf/src/controllers/abstract.js @@ -147,11 +147,13 @@ gmf.AbstractController = function(config, $scope, $injector) { // Reload theme when login status changes. const previousThemeName = this.gmfThemeManager.getThemeName(); this.gmfThemeManager.setThemeName('', true); + + // Reload themes and background layer when login status changes. + this.gmfThemes_.loadThemes(roleId); + if (evt.type !== gmf.AuthenticationEventType.READY) { this.updateCurrentTheme_(previousThemeName); } - // Reload themes and background layer when login status changes. - this.gmfThemes_.loadThemes(roleId); this.setDefaultBackground_(null); this.updateHasEditableLayers_(); };