summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-08 11:48:30 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-08 11:48:30 +0200
commitf4bf25cb357e96c6730cf85522f96948f4528b45 (patch)
tree94faa4cfa62d889fb1625332ac910c23d76dc82b
parent50db553ed590d7381ea6d5fbed864264ddf2aa49 (diff)
parentad8f065f4aeb95f85895903927ecf08947f18dab (diff)
downloadredot-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.xml2
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
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")));