mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:10:05 +00:00
Don't disable loading of products when navigating the timeline, just don't select it
This commit is contained in:
parent
4963add9cc
commit
d44075a5fd
1 changed files with 17 additions and 14 deletions
|
|
@ -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,20 +886,23 @@ void MapWidgetImpl::RadarProductManagerConnect()
|
|||
std::make_shared<request::NexradFileRequest>();
|
||||
|
||||
// File request callback
|
||||
connect(
|
||||
request.get(),
|
||||
&request::NexradFileRequest::RequestComplete,
|
||||
this,
|
||||
[this](std::shared_ptr<request::NexradFileRequest> request)
|
||||
{
|
||||
// Select loaded record
|
||||
auto record = request->radar_product_record();
|
||||
|
||||
if (record != nullptr)
|
||||
if (autoUpdateEnabled_)
|
||||
{
|
||||
connect(
|
||||
request.get(),
|
||||
&request::NexradFileRequest::RequestComplete,
|
||||
this,
|
||||
[this](std::shared_ptr<request::NexradFileRequest> request)
|
||||
{
|
||||
widget_->SelectRadarProduct(record);
|
||||
}
|
||||
});
|
||||
// Select loaded record
|
||||
auto record = request->radar_product_record();
|
||||
|
||||
if (record != nullptr)
|
||||
{
|
||||
widget_->SelectRadarProduct(record);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Load file
|
||||
scwx::util::async(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue