Browse Source

Merge pull request #13120 from MillionOstrich/filesystem-rmb-separator

Fix extra separator in filesystem dock right click menu
Rémi Verschelde 7 years ago
parent
commit
7c90d51b72
1 changed files with 3 additions and 3 deletions
  1. 3 3
      editor/filesystem_dock.cpp

+ 3 - 3
editor/filesystem_dock.cpp

@@ -1417,18 +1417,18 @@ void FileSystemDock::_files_list_rmb_select(int p_item, const Vector2 &p_pos) {
 		if (all_files_scenes) {
 			file_options->add_item(TTR("Instance"), FILE_INSTANCE);
 		}
+		file_options->add_separator();
 
 		if (filenames.size() == 1) {
-			file_options->add_separator();
 			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();
 	}
 
-	file_options->add_separator();
-
 	int num_items = filenames.size() + foldernames.size();
 	if (num_items >= 1) {
 		if (num_items == 1) {