Skip to content

Commit

Permalink
fix: window freezes when moving/adjusting window while tracerouting
Browse files Browse the repository at this point in the history
  • Loading branch information
Archeb committed Nov 10, 2023
1 parent 55b0bdf commit c644b64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ private void UpdateMap(TracerouteResult result)
// 把 Result 转换为 JSON
string resultJson = JsonConvert.SerializeObject(result);
// 通过 ExecuteScript 把结果传进去
mapWebView.ExecuteScript(@"window.opentrace.addHop(`" + resultJson + "`);");
mapWebView.ExecuteScriptAsync(@"window.opentrace.addHop(`" + resultJson + "`);");
}
catch (Exception e)
{
Expand Down
2 changes: 1 addition & 1 deletion OpenTrace.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Title>OpenTrace</Title>
<ApplicationIcon>icon.ico</ApplicationIcon>
<PackageIcon>icon.png</PackageIcon>
<Version>1.3.1.0</Version>
<Version>1.3.2.0</Version>

</PropertyGroup>

Expand Down

0 comments on commit c644b64

Please sign in to comment.