diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-11-04 14:18:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 14:18:27 +0100 |
commit | c4f29b078ab18325dac3558bce9111f6a6870d90 (patch) | |
tree | d5df3380b1c5bf8180e6e620df7300135abb0214 /editor/plugins/text_editor.cpp | |
parent | a302006f86f855c7f2a5fec97f092f9d7f1e8c6c (diff) | |
parent | e393c2a7348d96587e15af17c72ebeff719d4be3 (diff) |
Merge pull request #50352 from KoBeWi/internal_stuff
Diffstat (limited to 'editor/plugins/text_editor.cpp')
-rw-r--r-- | editor/plugins/text_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/text_editor.cpp b/editor/plugins/text_editor.cpp index 1fc7eb98e0..3b45f32927 100644 --- a/editor/plugins/text_editor.cpp +++ b/editor/plugins/text_editor.cpp @@ -65,7 +65,7 @@ void TextEditor::_load_theme_settings() { String TextEditor::get_name() { String name; - if (text_file->get_path().find("local://") == -1 && text_file->get_path().find("::") == -1) { + if (!text_file->is_built_in()) { name = text_file->get_path().get_file(); if (is_unsaved()) { if (text_file->get_path().is_empty()) { |