Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
c90ec71b
Unverified
Commit
c90ec71b
authored
Mar 04, 2020
by
Rémi Verschelde
Committed by
GitHub
Mar 04, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36699 from dreamsComeTrue/fix-extension-file-dialog
Take correct part of extension with File Dialog
parents
30ff00d6
319840ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
editor_file_dialog.cpp
editor/editor_file_dialog.cpp
+1
-1
No files found.
editor/editor_file_dialog.cpp
View file @
c90ec71b
...
...
@@ -691,7 +691,7 @@ void EditorFileDialog::update_file_name() {
String
base_name
=
file_str
.
get_basename
();
Vector
<
String
>
filter_substr
=
filter_str
.
split
(
";"
);
if
(
filter_substr
.
size
()
>=
2
)
{
file_str
=
base_name
+
"."
+
filter_substr
[
1
].
strip_edges
(
).
to_lower
();
file_str
=
base_name
+
"."
+
filter_substr
[
0
].
strip_edges
().
lstrip
(
"*."
).
to_lower
();
}
else
{
file_str
=
base_name
+
"."
+
filter_str
.
get_extension
().
strip_edges
().
to_lower
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment