diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-12-15 02:22:04 -0200 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-05-21 11:56:26 -0300 |
commit | 57a03f0f0252399f01e6445ba0117b2c616ae671 (patch) | |
tree | a105d6d12b5e41b957b632029c2a53df18f020e9 /editor/editor_autoload_settings.h | |
parent | 7d42ca838486ce4a737e074b60fffd81de1bc971 (diff) |
Restrict Autoloads from having keywords as their names
Diffstat (limited to 'editor/editor_autoload_settings.h')
-rw-r--r-- | editor/editor_autoload_settings.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_autoload_settings.h b/editor/editor_autoload_settings.h index 45added56b..76ce020d8a 100644 --- a/editor/editor_autoload_settings.h +++ b/editor/editor_autoload_settings.h @@ -84,6 +84,7 @@ class EditorAutoloadSettings : public VBoxContainer { void _autoload_edited(); void _autoload_button_pressed(Object *p_item, int p_column, int p_button); void _autoload_activated(); + void _autoload_text_entered(String) { _autoload_add(); } void _autoload_open(const String &fpath); void _autoload_file_callback(const String &p_path); Node *_create_autoload(const String &p_path); @@ -98,7 +99,7 @@ protected: public: void update_autoload(); - void autoload_add(const String &p_name, const String &p_path); + bool autoload_add(const String &p_name, const String &p_path); void autoload_remove(const String &p_name); EditorAutoloadSettings(); |