You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Forbid renaming input presets
This commit is contained in:
@@ -427,7 +427,8 @@ void ProjectSettings::_update_actions() {
|
||||
item->set_cell_mode(0,TreeItem::CELL_MODE_CHECK);
|
||||
item->set_text(0,name);
|
||||
item->add_button(0,get_icon("Add","EditorIcons"),1);
|
||||
item->add_button(0,get_icon("Rename","EditorIcons"),2);
|
||||
if (!Globals::get_singleton()->get_input_presets().find(pi.name))
|
||||
item->add_button(0,get_icon("Rename","EditorIcons"),2);
|
||||
item->add_button(0,get_icon("Remove","EditorIcons"),3);
|
||||
item->set_custom_bg_color(0,get_color("prop_subsection","Editor"));
|
||||
item->set_editable(0,true);
|
||||
|
||||
Reference in New Issue
Block a user