mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 07:10:05 +00:00 
			
		
		
		
	Ensure AlertLayerHandler is initialized prior to loading warnings
This commit is contained in:
		
							parent
							
								
									aec52f940d
								
							
						
					
					
						commit
						264cfb9326
					
				
					 3 changed files with 17 additions and 0 deletions
				
			
		|  | @ -206,6 +206,18 @@ AlertLayer::AlertLayer(std::shared_ptr<MapContext> context, | |||
| 
 | ||||
| AlertLayer::~AlertLayer() = default; | ||||
| 
 | ||||
| void AlertLayer::InitializeHandler() | ||||
| { | ||||
|    static bool ftt = true; | ||||
| 
 | ||||
|    if (ftt) | ||||
|    { | ||||
|       logger_->debug("Initializing handler"); | ||||
|       AlertLayerHandler::Instance(); | ||||
|       ftt = false; | ||||
|    } | ||||
| } | ||||
| 
 | ||||
| void AlertLayer::Initialize() | ||||
| { | ||||
|    logger_->debug("Initialize: {}", awips::GetPhenomenonText(p->phenomenon_)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat