mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:20:06 +00:00
Add current radar site to map context
This commit is contained in:
parent
b84c36c91a
commit
d21a11963f
3 changed files with 25 additions and 11 deletions
|
|
@ -2008,6 +2008,9 @@ void MapWidgetImpl::SelectNearestRadarSite(double latitude,
|
|||
void MapWidgetImpl::SetRadarSite(const std::string& radarSite,
|
||||
bool checkProductAvailability)
|
||||
{
|
||||
// Set the radar site in the context
|
||||
context_->set_radar_site(config::RadarSite::Get(radarSite));
|
||||
|
||||
// Check if radar site has changed
|
||||
if (radarProductManager_ == nullptr ||
|
||||
radarSite != radarProductManager_->radar_site()->id())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue