mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:50:05 +00:00
Force placefile refresh button
This commit is contained in:
parent
e43dcb9a6b
commit
66ef65fe2f
4 changed files with 51 additions and 1 deletions
|
|
@ -508,6 +508,17 @@ void PlacefileManager::RemoveUrl(const std::string& urlString)
|
|||
Q_EMIT PlacefileRemoved(urlString);
|
||||
}
|
||||
|
||||
void PlacefileManager::Refresh(const std::string& name)
|
||||
{
|
||||
std::shared_lock lock {p->placefileRecordLock_};
|
||||
|
||||
auto it = p->placefileRecordMap_.find(name);
|
||||
if (it != p->placefileRecordMap_.cend())
|
||||
{
|
||||
it->second->UpdateAsync();
|
||||
}
|
||||
}
|
||||
|
||||
void PlacefileManager::Impl::PlacefileRecord::Update()
|
||||
{
|
||||
logger_->debug("Update: {}", name_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue