From b1000d1830e2a0486a68e787d032ef5c2bc6a576 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Fri, 20 Sep 2024 15:21:50 +0800 Subject: [PATCH] Don't list CSV as a valid extension for Translation resource --- editor/localization_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/localization_editor.cpp b/editor/localization_editor.cpp index 6bc3a27a958..3c07e857584 100644 --- a/editor/localization_editor.cpp +++ b/editor/localization_editor.cpp @@ -37,7 +37,6 @@ #include "editor/filesystem_dock.h" #include "editor/gui/editor_file_dialog.h" #include "editor/pot_generator.h" -#include "editor/themes/editor_scale.h" #include "scene/gui/control.h" void LocalizationEditor::_notification(int p_what) { @@ -49,6 +48,7 @@ void LocalizationEditor::_notification(int p_what) { List tfn; ResourceLoader::get_recognized_extensions_for_type("Translation", &tfn); + tfn.erase("csv"); // CSV is recognized by the resource importer to generate translation files, but it's not a translation file itself. for (const String &E : tfn) { translation_file_open->add_filter("*." + E); }