summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-21 08:13:42 +0100
committerGitHub <noreply@github.com>2017-11-21 08:13:42 +0100
commit3d2fecdeb31aaccddb9f9e1bf0efbca5c5ad93da (patch)
treebd4c0157e585997afebded2a4c399e81397b59d4 /editor
parent5ff84070ca3604b43e86562a3d000ed924a604a2 (diff)
parent09619b02c41e1c36f041ef8f8386e5565fdd052a (diff)
Merge pull request #13117 from Krakean/filesystem_dock_addshowinexplorer
Files list: Add "Show in Explorer" popup when nothing under mouse cursor
Diffstat (limited to 'editor')
-rw-r--r--editor/filesystem_dock.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index 9c432323f4..ceec025e98 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1448,12 +1448,13 @@ void FileSystemDock::_files_list_rmb_select(int p_item, const Vector2 &p_pos) {
}
void FileSystemDock::_rmb_pressed(const Vector2 &p_pos) {
- folder_options->clear();
- folder_options->set_size(Size2(1, 1));
+ file_options->clear();
+ file_options->set_size(Size2(1, 1));
- folder_options->add_item(TTR("New Folder.."), FOLDER_NEW_FOLDER);
- folder_options->set_position(files->get_global_position() + p_pos);
- folder_options->popup();
+ file_options->add_item(TTR("New Folder.."), FILE_NEW_FOLDER);
+ file_options->add_item(TTR("Show In File Manager"), FILE_SHOW_IN_EXPLORER);
+ file_options->set_position(files->get_global_position() + p_pos);
+ file_options->popup();
}
void FileSystemDock::select_file(const String &p_file) {