diff options
| author | volzhs | 2018-02-07 06:32:03 +0900 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-02-21 22:09:23 +0100 |
| commit | 317cb336eb548e6e202eca2e9b36455c01edfc33 (patch) | |
| tree | 6a377af2c744c4f02e8b51d0377a07ae4470745f /editor/plugins/script_editor_plugin.h | |
| parent | 83b76a81714f8f41ec3da20df842c2acb2d63d4b (diff) | |
| download | godot-317cb336eb548e6e202eca2e9b36455c01edfc33.tar.gz godot-317cb336eb548e6e202eca2e9b36455c01edfc33.tar.zst godot-317cb336eb548e6e202eca2e9b36455c01edfc33.zip | |
Keep to show current script when closing all docs
also fix error when removing multiple tabs from TabContainer at same frame.
like closing multiple docs at once.
Fix #16403
(cherry picked from commit df84290a7ee2e4e939fc4eccc030129227c83895)
Diffstat (limited to 'editor/plugins/script_editor_plugin.h')
| -rw-r--r-- | editor/plugins/script_editor_plugin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.h b/editor/plugins/script_editor_plugin.h index 0f7c0c56c..f0ada7eca 100644 --- a/editor/plugins/script_editor_plugin.h +++ b/editor/plugins/script_editor_plugin.h @@ -251,7 +251,9 @@ class ScriptEditor : public PanelContainer { void _update_recent_scripts(); void _open_recent_script(int p_idx); - void _close_tab(int p_idx, bool p_save = true); + void _show_error_dialog(String p_path); + + void _close_tab(int p_idx, bool p_save = true, bool p_history_back = true); void _close_current_tab(); void _close_discard_current_tab(const String &p_str); |
