From bbe6cb273bf81f9a2d4f4565fa816b92274acffd Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Tue, 13 Jul 2021 08:36:49 +0700 Subject: [PATCH] Set terminal panel tabs close button policy to CLOSE_BUTTON_SHOW_ALWAYS Temporary measure until we can resolve the issue where inactive tabs would be closed when clicking on the area where the close button will show when policy was CLOSE_BUTTON_SHOW_ACTIVE_ONLY. --- .../godot_xterm/editor_plugins/terminal/terminal_panel.gd | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/addons/godot_xterm/editor_plugins/terminal/terminal_panel.gd b/addons/godot_xterm/editor_plugins/terminal/terminal_panel.gd index 818ee55..a44eeda 100644 --- a/addons/godot_xterm/editor_plugins/terminal/terminal_panel.gd +++ b/addons/godot_xterm/editor_plugins/terminal/terminal_panel.gd @@ -63,12 +63,7 @@ func _update_settings() -> void: var editor_scale: float = editor_interface.get_editor_scale() rect_min_size = Vector2(0, tabbar_container.rect_size.y + 182) * editor_scale - # Use the same policy as editor scene tabs. - tabs.tab_close_display_policy = ( - Tabs.CLOSE_BUTTON_SHOW_ALWAYS - if editor_settings.get_setting("interface/scene_tabs/always_show_close_button") - else Tabs.CLOSE_BUTTON_SHOW_ACTIVE_ONLY - ) + tabs.tab_close_display_policy = Tabs.CLOSE_BUTTON_SHOW_ALWAYS _update_terminal_tabs()