summaryrefslogtreecommitdiff
path: root/editor/filesystem_dock.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2023-01-15 00:12:58 +0100
committerGitHub <noreply@github.com>2023-01-15 00:12:58 +0100
commit4f631dc1b0819b6b693b78851623254bdfacfaed (patch)
treeba6961757148e0b813869ffc6d847f4e8c7c315d /editor/filesystem_dock.cpp
parentf7c5dbaeee63c1eca26e768afdbf2d4850273140 (diff)
parent659d9b0fa313879096d0f77253f72f0dd9a31ba5 (diff)
Merge pull request #71411 from Paulb23/new-textfile-global-path
Globalise path for New TextFile in FileSystemDock
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r--editor/filesystem_dock.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index 6eed3e3e61..17cdab60c8 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -2051,7 +2051,8 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected
if (!fpath.ends_with("/")) {
fpath = fpath.get_base_dir();
}
- ScriptEditor::get_singleton()->open_text_file_create_dialog(fpath);
+ String dir = ProjectSettings::get_singleton()->globalize_path(fpath);
+ ScriptEditor::get_singleton()->open_text_file_create_dialog(dir);
} break;
}
}