Fix level 2 selection on radar site change from modify_tilt_selection

This commit is contained in:
AdenKoperczak 2025-04-13 11:07:46 -04:00
parent 24f5f0a3e3
commit ceb1ca8416
No known key found for this signature in database
GPG key ID: 9843017036F62EE7

View file

@ -2095,15 +2095,20 @@ void MapWidgetImpl::CheckLevel3Availability()
}
productAvailabilityCheckNeeded_ = false;
// Get radar product view for fallback and level2 selection
auto radarProductView = context_->radar_product_view();
// Only do this for level3 products
if (widget_->GetRadarProductGroup() != common::RadarProductGroup::Level3)
{
widget_->SelectRadarProduct(radarProductView->GetRadarProductGroup(),
radarProductView->GetRadarProductName(),
0,
radarProductView->selected_time(),
false);
return;
}
// Get radar product view for fallback selection
auto radarProductView = context_->radar_product_view();
const common::Level3ProductCategoryMap& categoryMap =
widget_->GetAvailableLevel3Categories();