mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:20:05 +00:00
Don't update a radar product view when the timeline manager will issue a subsequent update
This commit is contained in:
parent
bce4c1bfb2
commit
16e3d1533f
3 changed files with 14 additions and 6 deletions
|
|
@ -359,7 +359,8 @@ void MapWidget::SelectElevation(float elevation)
|
|||
void MapWidget::SelectRadarProduct(common::RadarProductGroup group,
|
||||
const std::string& product,
|
||||
std::int16_t productCode,
|
||||
std::chrono::system_clock::time_point time)
|
||||
std::chrono::system_clock::time_point time,
|
||||
bool update)
|
||||
{
|
||||
bool radarProductViewCreated = false;
|
||||
|
||||
|
|
@ -420,7 +421,7 @@ void MapWidget::SelectRadarProduct(common::RadarProductGroup group,
|
|||
common::GetLevel3Palette(productCode);
|
||||
p->InitializeNewRadarProductView(palette);
|
||||
}
|
||||
else
|
||||
else if (update)
|
||||
{
|
||||
radarProductView->Update();
|
||||
}
|
||||
|
|
@ -487,7 +488,8 @@ void MapWidget::SelectRadarSite(std::shared_ptr<config::RadarSite> radarSite,
|
|||
SelectRadarProduct(radarProductView->GetRadarProductGroup(),
|
||||
radarProductView->GetRadarProductName(),
|
||||
0,
|
||||
radarProductView->selected_time());
|
||||
radarProductView->selected_time(),
|
||||
false);
|
||||
}
|
||||
|
||||
AddLayers();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue