mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
Don't query for available products when disabling product refresh
This commit is contained in:
parent
a81d6f340d
commit
ec06cc62e1
1 changed files with 27 additions and 20 deletions
|
|
@ -683,6 +683,8 @@ void RadarProductManager::EnableRefresh(common::RadarProductGroup group,
|
|||
p->GetLevel3ProviderManager(product);
|
||||
|
||||
// Only enable refresh on available products
|
||||
if (enabled)
|
||||
{
|
||||
boost::asio::post(
|
||||
p->threadPool_,
|
||||
[=, this]()
|
||||
|
|
@ -707,6 +709,11 @@ void RadarProductManager::EnableRefresh(common::RadarProductGroup group,
|
|||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
p->EnableRefresh(uuid, {providerManager}, enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void RadarProductManagerImpl::EnableRefresh(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue