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 2020-09-29 23:00:34 +02:00 committed by Rémi Verschelde
parent f4e653d88f
commit dc42ef2df9
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 39 additions and 28 deletions

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();