Save the current script when adding a new method via signal connection

This makes it possible for external editors to pick up the changes.
Most modern editors should reload the file automatically,
but some older/lightweight editors may ask the user instead
(or only warn after trying to save in the external editor).

This closes #41283.

(cherry picked from commit 0ade686601)
This commit is contained in:
Hugo Locurcio
2021-05-09 17:41:10 +02:00
committed by Rémi Verschelde
parent f4e653d88f
commit dc42ef2df9
2 changed files with 39 additions and 28 deletions
+1
View File
@@ -276,6 +276,7 @@ class ScriptEditor : public PanelContainer {
String _get_debug_tooltip(const String &p_text, Node *_se);
void _save_current_script();
void _resave_scripts(const String &p_str);
void _reload_scripts();