ssg: WeblogConfigurationWizardController: set blog provider, client and service type from constants, set HomepageUrl and Credentials from SSG wizard panel
This commit is contained in:
parent
24f08e63ea
commit
7323cc6e9e
|
@ -14,6 +14,8 @@ using OpenLiveWriter.CoreServices;
|
||||||
using OpenLiveWriter.Localization;
|
using OpenLiveWriter.Localization;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
using StaticSiteClient = OpenLiveWriter.BlogClient.Clients.StaticSiteClient;
|
||||||
|
|
||||||
namespace OpenLiveWriter.PostEditor.Configuration.Wizard
|
namespace OpenLiveWriter.PostEditor.Configuration.Wizard
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -487,7 +489,17 @@ namespace OpenLiveWriter.PostEditor.Configuration.Wizard
|
||||||
|
|
||||||
private void OnStaticSiteConfigCompleted(Object stepControl)
|
private void OnStaticSiteConfigCompleted(Object stepControl)
|
||||||
{
|
{
|
||||||
|
IAccountBasicInfoProvider accountBasicInfo = (IAccountBasicInfoProvider)stepControl;
|
||||||
|
|
||||||
|
// Fill blog settings
|
||||||
|
_temporarySettings.SetProvider(
|
||||||
|
StaticSiteClient.PROVIDER_ID,
|
||||||
|
StaticSiteClient.SERVICE_NAME,
|
||||||
|
StaticSiteClient.POST_API_URL,
|
||||||
|
StaticSiteClient.CLIENT_TYPE
|
||||||
|
);
|
||||||
|
_temporarySettings.HomepageUrl = accountBasicInfo.HomepageUrl;
|
||||||
|
_temporarySettings.Credentials = accountBasicInfo.Credentials;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in New Issue