Don't disable loading of products when navigating the timeline, just don't select it

This commit is contained in:
Dan Paulat 2023-05-29 14:48:54 -05:00
parent 4963add9cc
commit d44075a5fd

View file

@ -876,7 +876,7 @@ void MapWidgetImpl::RadarProductManagerConnect()
const std::string& product,
std::chrono::system_clock::time_point latestTime)
{
if (autoUpdateEnabled_ &&
if (autoRefreshEnabled_ &&
context_->radar_product_group() == group &&
(group == common::RadarProductGroup::Level2 ||
context_->radar_product() == product))
@ -886,6 +886,8 @@ void MapWidgetImpl::RadarProductManagerConnect()
std::make_shared<request::NexradFileRequest>();
// File request callback
if (autoUpdateEnabled_)
{
connect(
request.get(),
&request::NexradFileRequest::RequestComplete,
@ -900,6 +902,7 @@ void MapWidgetImpl::RadarProductManagerConnect()
widget_->SelectRadarProduct(record);
}
});
}
// Load file
scwx::util::async(