summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsersoong <sersoong@gmail.com>2017-12-09 10:33:28 +0800
committersersoong <sersoong@gmail.com>2017-12-09 10:38:16 +0800
commit3cdcf02d1e18b5eb9d57cef46e654623fb779182 (patch)
tree6341e88fd47c8b2197d2a48beb104cf73e2b6886
parentb8afafa2262684ee2b451b5686679baf984c3e59 (diff)
Restored two items in filesystemdock menu
-rw-r--r--editor/filesystem_dock.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index ca6571fdda..4a74ceac6d 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1441,10 +1441,14 @@ void FileSystemDock::_files_list_rmb_select(int p_item, const Vector2 &p_pos) {
if (!all_files_scenes && filenames.size() == 1) {
file_options->add_item(TTR("Open"), FILE_OPEN);
file_options->add_separator();
+ }
+
+ if (filenames.size() == 1) {
file_options->add_item(TTR("Edit Dependencies.."), FILE_DEPENDENCIES);
file_options->add_item(TTR("View Owners.."), FILE_OWNERS);
file_options->add_separator();
}
+
} else if (all_folders && foldernames.size() > 0) {
file_options->add_item(TTR("Open"), FILE_OPEN);
file_options->add_separator();