mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 08:10:06 +00:00 
			
		
		
		
	Only add placefile layers if the placefile is enabled
This commit is contained in:
		
							parent
							
								
									7e2fd7c109
								
							
						
					
					
						commit
						c81d9d9ba6
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -859,8 +859,12 @@ void MapWidgetImpl::AddLayer(types::LayerType        type, | |||
|    } | ||||
|    else if (type == types::LayerType::Placefile) | ||||
|    { | ||||
|       // Add the placefile layer
 | ||||
|       AddPlacefileLayer(std::get<std::string>(description), before); | ||||
|       // If the placefile is enabled, add the placefile layer
 | ||||
|       std::string placefileName = std::get<std::string>(description); | ||||
|       if (placefileManager_->placefile_enabled(placefileName)) | ||||
|       { | ||||
|          AddPlacefileLayer(placefileName, before); | ||||
|       } | ||||
|    } | ||||
|    else if (type == types::LayerType::Information) | ||||
|    { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat