mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:50:05 +00:00 
			
		
		
		
	Don't query for available products when disabling product refresh
This commit is contained in:
		
							parent
							
								
									a81d6f340d
								
							
						
					
					
						commit
						ec06cc62e1
					
				
					 1 changed files with 27 additions and 20 deletions
				
			
		|  | @ -683,6 +683,8 @@ void RadarProductManager::EnableRefresh(common::RadarProductGroup group, | ||||||
|          p->GetLevel3ProviderManager(product); |          p->GetLevel3ProviderManager(product); | ||||||
| 
 | 
 | ||||||
|       // Only enable refresh on available products
 |       // Only enable refresh on available products
 | ||||||
|  |       if (enabled) | ||||||
|  |       { | ||||||
|          boost::asio::post( |          boost::asio::post( | ||||||
|             p->threadPool_, |             p->threadPool_, | ||||||
|             [=, this]() |             [=, this]() | ||||||
|  | @ -707,6 +709,11 @@ void RadarProductManager::EnableRefresh(common::RadarProductGroup group, | ||||||
|                } |                } | ||||||
|             }); |             }); | ||||||
|       } |       } | ||||||
|  |       else | ||||||
|  |       { | ||||||
|  |          p->EnableRefresh(uuid, {providerManager}, enabled); | ||||||
|  |       } | ||||||
|  |    } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void RadarProductManagerImpl::EnableRefresh( | void RadarProductManagerImpl::EnableRefresh( | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat