mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	String: Add contains().
This commit is contained in:
		
							parent
							
								
									bf12719cca
								
							
						
					
					
						commit
						adbe948bda
					
				
					 57 changed files with 142 additions and 119 deletions
				
			
		|  | @ -110,7 +110,7 @@ void ResourcePreloaderEditor::_item_edited() { | |||
| 			return; | ||||
| 		} | ||||
| 
 | ||||
| 		if (new_name.is_empty() || new_name.find("\\") != -1 || new_name.find("/") != -1 || preloader->has_resource(new_name)) { | ||||
| 		if (new_name.is_empty() || new_name.contains("\\") || new_name.contains("/") || preloader->has_resource(new_name)) { | ||||
| 			s->set_text(0, old_name); | ||||
| 			return; | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Anilforextra
						Anilforextra