mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-22 09:40:25 +01:00
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:
parent
6afaa55914
commit
bbe6cb273b
1 changed files with 1 additions and 6 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue