SEBWIN-408: Made favicon loading asynchronous.
This commit is contained in:
parent
bcb8abdeaa
commit
eb8ac889a4
1 changed files with 10 additions and 7 deletions
|
@ -280,6 +280,8 @@ namespace SafeExamBrowser.Browser
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DisplayHandler_FaviconChanged(string uri)
|
private void DisplayHandler_FaviconChanged(string uri)
|
||||||
|
{
|
||||||
|
Task.Run(() =>
|
||||||
{
|
{
|
||||||
var request = new HttpRequestMessage(HttpMethod.Head, uri);
|
var request = new HttpRequestMessage(HttpMethod.Head, uri);
|
||||||
var response = httpClient.SendAsync(request).ContinueWith(task =>
|
var response = httpClient.SendAsync(request).ContinueWith(task =>
|
||||||
|
@ -292,6 +294,7 @@ namespace SafeExamBrowser.Browser
|
||||||
window.UpdateIcon(Icon);
|
window.UpdateIcon(Icon);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DisplayHandler_ProgressChanged(double value)
|
private void DisplayHandler_ProgressChanged(double value)
|
||||||
|
|
Loading…
Reference in a new issue