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
d552f0f1
Unverified
Commit
d552f0f1
authored
Nov 11, 2019
by
Rémi Verschelde
Committed by
GitHub
Nov 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #33545 from YeldhamDev/filesys_mainscn_not_current
Hide "Set As Main Scene" in FileSystem dock if the scene is already the main one
parents
b81356e1
107c1969
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
filesystem_dock.cpp
editor/filesystem_dock.cpp
+2
-0
No files found.
editor/filesystem_dock.cpp
View file @
d552f0f1
...
...
@@ -2147,7 +2147,9 @@ void FileSystemDock::_file_and_folders_fill_popup(PopupMenu *p_popup, Vector<Str
if
(
filenames
.
size
()
==
1
)
{
p_popup
->
add_icon_item
(
get_icon
(
"Load"
,
"EditorIcons"
),
TTR
(
"Open Scene"
),
FILE_OPEN
);
p_popup
->
add_icon_item
(
get_icon
(
"CreateNewSceneFrom"
,
"EditorIcons"
),
TTR
(
"New Inherited Scene"
),
FILE_INHERIT
);
if
(
ProjectSettings
::
get_singleton
()
->
get
(
"application/run/main_scene"
)
!=
filenames
[
0
])
{
p_popup
->
add_icon_item
(
get_icon
(
"PlayScene"
,
"EditorIcons"
),
TTR
(
"Set As Main Scene"
),
FILE_MAIN_SCENE
);
}
}
else
{
p_popup
->
add_icon_item
(
get_icon
(
"Load"
,
"EditorIcons"
),
TTR
(
"Open Scenes"
),
FILE_OPEN
);
}
...
...
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