mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-16 02:02:51 -07:00
Fixes a bug: currency converter never shows error message for service failures (#1799)
* check status before registering callback * optimize the style for error msg
This commit is contained in:
parent
d1464a171c
commit
72860fe494
2 changed files with 2 additions and 4 deletions
|
@ -188,10 +188,9 @@ void CurrencyDataLoader::ResetLoadStatus()
|
|||
#pragma optimize("", off) // Turn off optimizations to work around DevDiv 393321
|
||||
void CurrencyDataLoader::LoadData()
|
||||
{
|
||||
RegisterForNetworkBehaviorChanges();
|
||||
|
||||
if (!LoadFinished())
|
||||
{
|
||||
RegisterForNetworkBehaviorChanges();
|
||||
create_task([this]() -> task<bool> {
|
||||
vector<function<future<bool>()>> loadFunctions = {
|
||||
[this]() { return TryLoadDataFromCacheAsync(); },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue