diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-08 11:48:30 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-08 11:48:30 +0200 |
commit | f4bf25cb357e96c6730cf85522f96948f4528b45 (patch) | |
tree | 94faa4cfa62d889fb1625332ac910c23d76dc82b | |
parent | 50db553ed590d7381ea6d5fbed864264ddf2aa49 (diff) | |
parent | ad8f065f4aeb95f85895903927ecf08947f18dab (diff) | |
download | redot-engine-f4bf25cb357e96c6730cf85522f96948f4528b45.tar.gz |
Merge pull request #94057 from kitbdev/fix-request-save-signal-type
Fix ScriptEditor `request_save_previous_state` signal type
-rw-r--r-- | doc/classes/ScriptEditorBase.xml | 2 | ||||
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/ScriptEditorBase.xml b/doc/classes/ScriptEditorBase.xml index 403608355a..638bc921d6 100644 --- a/doc/classes/ScriptEditorBase.xml +++ b/doc/classes/ScriptEditorBase.xml @@ -72,7 +72,7 @@ </description> </signal> <signal name="request_save_previous_state"> - <param index="0" name="line" type="int" /> + <param index="0" name="state" type="Dictionary" /> <description> Emitted when the user changes current script or moves caret by 10 or more columns within the same script. </description> diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index a670c7937b..c51eb44aee 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -272,7 +272,7 @@ void ScriptEditorBase::_bind_methods() { ADD_SIGNAL(MethodInfo("request_help", PropertyInfo(Variant::STRING, "topic"))); ADD_SIGNAL(MethodInfo("request_open_script_at_line", PropertyInfo(Variant::OBJECT, "script"), PropertyInfo(Variant::INT, "line"))); ADD_SIGNAL(MethodInfo("request_save_history")); - ADD_SIGNAL(MethodInfo("request_save_previous_state", PropertyInfo(Variant::INT, "line"))); + ADD_SIGNAL(MethodInfo("request_save_previous_state", PropertyInfo(Variant::DICTIONARY, "state"))); ADD_SIGNAL(MethodInfo("go_to_help", PropertyInfo(Variant::STRING, "what"))); ADD_SIGNAL(MethodInfo("search_in_files_requested", PropertyInfo(Variant::STRING, "text"))); ADD_SIGNAL(MethodInfo("replace_in_files_requested", PropertyInfo(Variant::STRING, "text"))); |