Add setting for automatically opening scripts
This commit is contained in:
parent
f4f0679a2d
commit
14afee66c4
3 changed files with 7 additions and 0 deletions
|
|
@ -2833,6 +2833,9 @@ void FileSystemDock::_resource_created() {
|
|||
}
|
||||
|
||||
void FileSystemDock::_script_or_shader_created(const Ref<Resource> &p_resource) {
|
||||
if (Object::cast_to<Script>(p_resource.ptr()) && !EDITOR_GET("docks/filesystem/automatically_open_created_scripts").operator bool()) {
|
||||
return;
|
||||
}
|
||||
EditorNode::get_singleton()->push_item(p_resource.ptr());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue