Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Merge pull request #75811 from KoBeWi/OPEN_ALL_THE_FILES

Thaddeus Crewsc8f70181b529
diff --cc editor/docks/filesystem_dock.cpp
index 9b6df5517f5,8339ec3bfc3..b853d1fb55d
--- a/editor/docks/filesystem_dock.cpp
+++ b/editor/docks/filesystem_dock.cpp
@@@ -3658,13 -3664,14 +3655,20 @@@ void FileSystemDock::_file_and_folders_
#endif
current_path = fpath;
+ } else if (no_paths) {
+#if !defined(ANDROID_ENABLED) && !defined(WEB_ENABLED)
+ tree_popup->add_separator();
+ tree_popup->add_icon_shortcut(get_editor_theme_icon(SNAME("Terminal")), ED_GET_SHORTCUT("filesystem_dock/open_in_terminal"), FILE_MENU_OPEN_IN_TERMINAL);
+ tree_popup->add_icon_shortcut(get_editor_theme_icon(SNAME("Filesystem")), ED_GET_SHORTCUT("filesystem_dock/show_in_explorer"), FILE_MENU_SHOW_IN_EXPLORER);
+#endif
}
+
+ #if !defined(ANDROID_ENABLED) && !defined(WEB_ENABLED)
+ if (all_files && p_paths.size() > 1) {
+ p_popup->add_separator();
+ p_popup->add_icon_shortcut(get_editor_theme_icon(SNAME("ExternalLink")), ED_GET_SHORTCUT("filesystem_dock/open_in_external_program"), FILE_MENU_OPEN_EXTERNAL);
+ }
+ #endif
EditorContextMenuPluginManager::get_singleton()->add_options_from_plugins(p_popup, EditorContextMenuPlugin::CONTEXT_SLOT_FILESYSTEM, p_paths);
}