Prevent user from trying to duplicate res://
Fixes #117624 where attempting to duplicate res:// directory opens duplication popup. This change would instead prevent user silently.
This commit is contained in:
@@ -2608,7 +2608,7 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected
|
||||
} break;
|
||||
|
||||
case FILE_MENU_DUPLICATE: {
|
||||
if (p_selected.size() != 1) {
|
||||
if (p_selected.size() != 1 || p_selected[0] == "res://") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user