mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Ignore default date/time selections for archive warnings
This commit is contained in:
		
							parent
							
								
									33cfd4bc0e
								
							
						
					
					
						commit
						02ec27dd2f
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -200,6 +200,12 @@ void TextEventManager::LoadFile(const std::string& filename) | |||
| void TextEventManager::SelectTime( | ||||
|    std::chrono::system_clock::time_point dateTime) | ||||
| { | ||||
|    if (dateTime == std::chrono::system_clock::time_point {}) | ||||
|    { | ||||
|       // Ignore a default date/time selection
 | ||||
|       return; | ||||
|    } | ||||
| 
 | ||||
|    logger_->trace("Select Time: {}", util::TimeString(dateTime)); | ||||
| 
 | ||||
|    const auto today     = std::chrono::floor<std::chrono::days>(dateTime); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat