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:
jack-klein-5
2026-03-20 14:03:31 -07:00
parent 28eecef6f1
commit 2619ef3f2c
+1 -1
View File
@@ -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;
}