1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Save the current script when pressing Ctrl + S if no scene is open

- Tweak the dialog messages to be more informative.
  - The "Saved N modified resources" dialog is not a warning per se,
    so make it more explicit.

(cherry picked from commit 39f9b92f54)
This commit is contained in:
Hugo Locurcio
2021-05-09 12:29:50 +02:00
committed by Rémi Verschelde
parent c1e887edb8
commit c318cf6ed2
3 changed files with 53 additions and 44 deletions

View File

@@ -276,7 +276,6 @@ 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();
@@ -428,6 +427,7 @@ public:
void get_breakpoints(List<String> *p_breakpoints);
void save_current_script();
void save_all_scripts();
void set_window_layout(Ref<ConfigFile> p_layout);