Force placefile refresh button

This commit is contained in:
Dan Paulat 2023-11-05 06:32:47 -06:00
parent e43dcb9a6b
commit 66ef65fe2f
4 changed files with 51 additions and 1 deletions

View file

@ -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_);