Update selected time with the found overlay product

Fixes #155
This commit is contained in:
Dan Paulat 2024-03-12 23:37:51 -05:00
parent 0952c0f90c
commit 6d474cbe76

View file

@ -279,6 +279,12 @@ void OverlayProductView::Impl::Update(const std::string& product)
std::tie(message, foundTime) = std::tie(message, foundTime) =
radarProductManager_->GetLevel3Data(product, requestedTime); radarProductManager_->GetLevel3Data(product, requestedTime);
// If a different time was found than what was requested, update it
if (requestedTime != foundTime)
{
selectedTime_ = foundTime;
}
if (message == nullptr) if (message == nullptr)
{ {
logger_->debug("{} data not found", product); logger_->debug("{} data not found", product);