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.
This commit is contained in:
Leroy Hopson 2021-07-13 08:36:49 +07:00
parent 6afaa55914
commit bbe6cb273b
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -63,12 +63,7 @@ func _update_settings() -> void:
var editor_scale: float = editor_interface.get_editor_scale() var editor_scale: float = editor_interface.get_editor_scale()
rect_min_size = Vector2(0, tabbar_container.rect_size.y + 182) * 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
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
)
_update_terminal_tabs() _update_terminal_tabs()