ssg: WeblogConfigurationWizardController: load config from blog settings, save homepage url

This commit is contained in:
Nick Vella 2019-07-04 00:49:58 +10:00
parent dd063fc85f
commit 0f5a6c9755
1 changed files with 3 additions and 1 deletions

View File

@ -494,7 +494,7 @@ namespace OpenLiveWriter.PostEditor.Configuration.Wizard
// Populate data
var panel = (stepControl as WeblogConfigurationWizardPanelStaticSiteInitial);
// Load static config from credentials provided
staticSiteConfig = StaticSiteConfig.LoadConfigFromCredentials( _temporarySettings.Credentials);
staticSiteConfig = StaticSiteConfig.LoadConfigFromBlogSettings( _temporarySettings);
panel.LoadFromConfig(staticSiteConfig);
}
@ -577,6 +577,8 @@ namespace OpenLiveWriter.PostEditor.Configuration.Wizard
StaticSiteClient.CLIENT_TYPE
);
_temporarySettings.HomepageUrl = staticSiteConfig.SiteUrl;
// Fill config into credentials
staticSiteConfig.SaveToCredentials(_temporarySettings.Credentials);
}