ssg: WeblogConfigurationWizardController: load config from blog settings, save homepage url
This commit is contained in:
parent
dd063fc85f
commit
0f5a6c9755
|
@ -494,7 +494,7 @@ namespace OpenLiveWriter.PostEditor.Configuration.Wizard
|
||||||
// Populate data
|
// Populate data
|
||||||
var panel = (stepControl as WeblogConfigurationWizardPanelStaticSiteInitial);
|
var panel = (stepControl as WeblogConfigurationWizardPanelStaticSiteInitial);
|
||||||
// Load static config from credentials provided
|
// Load static config from credentials provided
|
||||||
staticSiteConfig = StaticSiteConfig.LoadConfigFromCredentials( _temporarySettings.Credentials);
|
staticSiteConfig = StaticSiteConfig.LoadConfigFromBlogSettings( _temporarySettings);
|
||||||
panel.LoadFromConfig(staticSiteConfig);
|
panel.LoadFromConfig(staticSiteConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -577,6 +577,8 @@ namespace OpenLiveWriter.PostEditor.Configuration.Wizard
|
||||||
StaticSiteClient.CLIENT_TYPE
|
StaticSiteClient.CLIENT_TYPE
|
||||||
);
|
);
|
||||||
|
|
||||||
|
_temporarySettings.HomepageUrl = staticSiteConfig.SiteUrl;
|
||||||
|
|
||||||
// Fill config into credentials
|
// Fill config into credentials
|
||||||
staticSiteConfig.SaveToCredentials(_temporarySettings.Credentials);
|
staticSiteConfig.SaveToCredentials(_temporarySettings.Credentials);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue