Clean and debug

This commit is contained in:
Adrien Ufferte
2025-06-24 08:56:55 +02:00
parent 2b683155f0
commit 47b9e643ae
8 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ func _on_word_gui_input(event: InputEvent) -> void:
func _on_list_title_import_path_selected(path: String, match_to_file: bool) -> void:
var file: FileAccess = FileAccess.open(path, FileAccess.READ)
var line: PackedStringArray = file.get_csv_line()
if line.size() < 1 or line[0] != "ORTHO" and line[1] != "GPMATCH":
if line.size() < 2 or line[0] != "ORTHO" or line[1] != "GPMATCH":
error_label.text = "Column names should be ORTHO, GPMATCH"
return
var all_data: Dictionary = {}