aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/script_editor_plugin.h
diff options
context:
space:
mode:
authorWilhem Barbier2017-01-02 19:45:59 +0100
committerRémi Verschelde2017-01-15 00:35:52 +0100
commita1d07fd6d6a21ca6a3366aa7c9024dc41e3d323c (patch)
tree3f79d44e32c1b068e55f35be1f546e60265355ef /tools/editor/plugins/script_editor_plugin.h
parent07f65184f3886fc836f6d7f8de5052c64bda50bf (diff)
downloadgodot-a1d07fd6d6a21ca6a3366aa7c9024dc41e3d323c.tar.gz
godot-a1d07fd6d6a21ca6a3366aa7c9024dc41e3d323c.tar.zst
godot-a1d07fd6d6a21ca6a3366aa7c9024dc41e3d323c.zip
Allow closing a script tab without saving
Diffstat (limited to '')
-rw-r--r--tools/editor/plugins/script_editor_plugin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.h b/tools/editor/plugins/script_editor_plugin.h
index 655568e26..887c2f7d6 100644
--- a/tools/editor/plugins/script_editor_plugin.h
+++ b/tools/editor/plugins/script_editor_plugin.h
@@ -219,9 +219,10 @@ class ScriptEditor : public VBoxContainer {
bool _test_script_times_on_disk(Ref<Script> p_for_script=Ref<Script>());
- void _close_tab(int p_idx);
+ void _close_tab(int p_idx, bool p_save=true);
void _close_current_tab();
+ void _close_discard_current_tab(const String& p_str);
void _close_docs_tab();
void _close_all_tabs();