File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 3232
3333#include " core/config/project_settings.h"
3434#include " core/string/translation_server.h"
35+ #include " editor/editor_settings.h"
3536#include " editor/editor_translation_parser.h"
3637#include " editor/editor_undo_redo_manager.h"
3738#include " editor/filesystem_dock.h"
@@ -400,6 +401,7 @@ void LocalizationEditor::_pot_add_builtin_toggled() {
400401}
401402
402403void LocalizationEditor::_pot_generate (const String &p_file) {
404+ EditorSettings::get_singleton ()->set_project_metadata (" pot_generator" , " last_pot_path" , p_file);
403405 POTGenerator::get_singleton ()->generate_pot (p_file);
404406}
405407
@@ -761,6 +763,7 @@ LocalizationEditor::LocalizationEditor() {
761763
762764 pot_generate_dialog = memnew (EditorFileDialog);
763765 pot_generate_dialog->set_file_mode (EditorFileDialog::FILE_MODE_SAVE_FILE);
766+ pot_generate_dialog->set_current_path (EditorSettings::get_singleton ()->get_project_metadata (" pot_generator" , " last_pot_path" , String ()));
764767 pot_generate_dialog->connect (" file_selected" , callable_mp (this , &LocalizationEditor::_pot_generate));
765768 add_child (pot_generate_dialog);
766769
You can’t perform that action at this time.
0 commit comments