Skip to content

Commit

Permalink
Update IDSDKManager.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusongit committed Mar 21, 2024
1 parent ef8cffc commit 6a422d0
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/DynamoCore/Core/IDSDKManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,21 +222,21 @@ private bool Initialize()
{
if (Client.IsInitialized())
{
IntPtr hWnd = Process.GetCurrentProcess().MainWindowHandle;
if (hWnd != null)
{
Client.SetHost(hWnd);
}
IntPtr hWnd = Process.GetCurrentProcess().MainWindowHandle;
if (hWnd != null)
{
Client.SetHost(hWnd);
}

bool ret = GetClientIDAndServer(out idsdk_server server, out string client_id);
if (ret)
{
Client.LogoutCompleteEvent += AuthCompleteEventHandler;
Client.LoginCompleteEvent += AuthCompleteEventHandler;
ret = SetProductConfigs(Configurations.DynamoAsString, server, client_id);
Client.SetServer(server);
return ret;
}
bool ret = GetClientIDAndServer(out idsdk_server server, out string client_id);
if (ret)
{
Client.LogoutCompleteEvent += AuthCompleteEventHandler;
Client.LoginCompleteEvent += AuthCompleteEventHandler;
ret = SetProductConfigs(Configurations.DynamoAsString, server, client_id);
Client.SetServer(server);
return ret;
}
}
}
return false;
Expand Down

0 comments on commit 6a422d0

Please sign in to comment.