mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	Fix ScriptCreateDialog to avoid selecting the file extension upon opening
Fixes: #89295
This is a regression from commit 2bd714e34e
			
			
This commit is contained in:
		
							parent
							
								
									f28964805e
								
							
						
					
					
						commit
						a13b755b60
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -146,7 +146,7 @@ void ScriptCreateDialog::_notification(int p_what) {
 | 
				
			||||||
void ScriptCreateDialog::_path_hbox_sorted() {
 | 
					void ScriptCreateDialog::_path_hbox_sorted() {
 | 
				
			||||||
	if (is_visible()) {
 | 
						if (is_visible()) {
 | 
				
			||||||
		int filename_start_pos = file_path->get_text().rfind("/") + 1;
 | 
							int filename_start_pos = file_path->get_text().rfind("/") + 1;
 | 
				
			||||||
		int filename_end_pos = file_path->get_text().length();
 | 
							int filename_end_pos = file_path->get_text().get_basename().length();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (!is_built_in) {
 | 
							if (!is_built_in) {
 | 
				
			||||||
			file_path->select(filename_start_pos, filename_end_pos);
 | 
								file_path->select(filename_start_pos, filename_end_pos);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue