Skip to content

Commit f4bf25c

Browse files
committed
Merge pull request godotengine#94057 from kitbdev/fix-request-save-signal-type
Fix ScriptEditor `request_save_previous_state` signal type
2 parents 50db553 + ad8f065 commit f4bf25c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/classes/ScriptEditorBase.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
</description>
7373
</signal>
7474
<signal name="request_save_previous_state">
75-
<param index="0" name="line" type="int" />
75+
<param index="0" name="state" type="Dictionary" />
7676
<description>
7777
Emitted when the user changes current script or moves caret by 10 or more columns within the same script.
7878
</description>

editor/plugins/script_editor_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ void ScriptEditorBase::_bind_methods() {
272272
ADD_SIGNAL(MethodInfo("request_help", PropertyInfo(Variant::STRING, "topic")));
273273
ADD_SIGNAL(MethodInfo("request_open_script_at_line", PropertyInfo(Variant::OBJECT, "script"), PropertyInfo(Variant::INT, "line")));
274274
ADD_SIGNAL(MethodInfo("request_save_history"));
275-
ADD_SIGNAL(MethodInfo("request_save_previous_state", PropertyInfo(Variant::INT, "line")));
275+
ADD_SIGNAL(MethodInfo("request_save_previous_state", PropertyInfo(Variant::DICTIONARY, "state")));
276276
ADD_SIGNAL(MethodInfo("go_to_help", PropertyInfo(Variant::STRING, "what")));
277277
ADD_SIGNAL(MethodInfo("search_in_files_requested", PropertyInfo(Variant::STRING, "text")));
278278
ADD_SIGNAL(MethodInfo("replace_in_files_requested", PropertyInfo(Variant::STRING, "text")));

0 commit comments

Comments
 (0)