mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:00:04 +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,20 +886,23 @@ void MapWidgetImpl::RadarProductManagerConnect() | ||||||
|                   std::make_shared<request::NexradFileRequest>(); |                   std::make_shared<request::NexradFileRequest>(); | ||||||
| 
 | 
 | ||||||
|                // File request callback
 |                // File request callback
 | ||||||
|                connect( |                if (autoUpdateEnabled_) | ||||||
|                   request.get(), |                { | ||||||
|                   &request::NexradFileRequest::RequestComplete, |                   connect( | ||||||
|                   this, |                      request.get(), | ||||||
|                   [this](std::shared_ptr<request::NexradFileRequest> request) |                      &request::NexradFileRequest::RequestComplete, | ||||||
|                   { |                      this, | ||||||
|                      // Select loaded record
 |                      [this](std::shared_ptr<request::NexradFileRequest> request) | ||||||
|                      auto record = request->radar_product_record(); |  | ||||||
| 
 |  | ||||||
|                      if (record != nullptr) |  | ||||||
|                      { |                      { | ||||||
|                         widget_->SelectRadarProduct(record); |                         // Select loaded record
 | ||||||
|                      } |                         auto record = request->radar_product_record(); | ||||||
|                   }); | 
 | ||||||
|  |                         if (record != nullptr) | ||||||
|  |                         { | ||||||
|  |                            widget_->SelectRadarProduct(record); | ||||||
|  |                         } | ||||||
|  |                      }); | ||||||
|  |                } | ||||||
| 
 | 
 | ||||||
|                // Load file
 |                // Load file
 | ||||||
|                scwx::util::async( |                scwx::util::async( | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat