mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 12:50:06 +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,
|
const std::string& product,
|
||||||
std::chrono::system_clock::time_point latestTime)
|
std::chrono::system_clock::time_point latestTime)
|
||||||
{
|
{
|
||||||
if (autoUpdateEnabled_ &&
|
if (autoRefreshEnabled_ &&
|
||||||
context_->radar_product_group() == group &&
|
context_->radar_product_group() == group &&
|
||||||
(group == common::RadarProductGroup::Level2 ||
|
(group == common::RadarProductGroup::Level2 ||
|
||||||
context_->radar_product() == product))
|
context_->radar_product() == product))
|
||||||
|
|
@ -886,6 +886,8 @@ void MapWidgetImpl::RadarProductManagerConnect()
|
||||||
std::make_shared<request::NexradFileRequest>();
|
std::make_shared<request::NexradFileRequest>();
|
||||||
|
|
||||||
// File request callback
|
// File request callback
|
||||||
|
if (autoUpdateEnabled_)
|
||||||
|
{
|
||||||
connect(
|
connect(
|
||||||
request.get(),
|
request.get(),
|
||||||
&request::NexradFileRequest::RequestComplete,
|
&request::NexradFileRequest::RequestComplete,
|
||||||
|
|
@ -900,6 +902,7 @@ void MapWidgetImpl::RadarProductManagerConnect()
|
||||||
widget_->SelectRadarProduct(record);
|
widget_->SelectRadarProduct(record);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Load file
|
// Load file
|
||||||
scwx::util::async(
|
scwx::util::async(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue