From 5718599bd2eb8e5f58f4264948d8e0fca10ba8fd Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Wed, 31 Jul 2019 21:06:15 +0200 Subject: Add Reopen Closed Script option in Script Editor --- editor/plugins/script_editor_plugin.cpp | 59 ++++++++++++++++++++++++++++++--- editor/plugins/script_editor_plugin.h | 3 +- 2 files changed, 57 insertions(+), 5 deletions(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 9cf889c5b0..9418349d71 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -485,7 +485,7 @@ void ScriptEditor::_update_recent_scripts() { Array rc = EditorSettings::get_singleton()->get_project_metadata("recent_files", "scripts", Array()); recent_scripts->clear(); - recent_scripts->add_shortcut(ED_SHORTCUT("script_editor/open_recent", TTR("Open Recent"), KEY_MASK_CMD | KEY_MASK_SHIFT | KEY_T)); + recent_scripts->add_shortcut(ED_SHORTCUT("script_editor/open_recent", TTR("Open Recent"))); recent_scripts->add_separator(); String path; @@ -579,6 +579,7 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) { Ref