mirror of
https://github.com/godotengine/godot.git
synced 2025-04-25 01:48:08 +08:00
[Editor] Fix float dock shows untranslated title.
This commit is contained in:
parent
fa270c2456
commit
4fdfc5176c
@ -4437,6 +4437,7 @@ void EditorNode::_dock_floating_close_request(Control *p_control) {
|
||||
dock_slot[window_slot]->add_child(p_control);
|
||||
dock_slot[window_slot]->move_child(p_control, MIN((int)window->get_meta("dock_index"), dock_slot[window_slot]->get_tab_count()));
|
||||
dock_slot[window_slot]->set_current_tab(window->get_meta("dock_index"));
|
||||
dock_slot[window_slot]->set_tab_title(dock_slot[window_slot]->get_tab_idx_from_control(p_control), TTRGET(p_control->get_name()));
|
||||
|
||||
window->queue_free();
|
||||
|
||||
@ -4460,7 +4461,7 @@ void EditorNode::_dock_make_float() {
|
||||
dock_slot[dock_popup_selected_idx]->remove_child(dock);
|
||||
|
||||
Window *window = memnew(Window);
|
||||
window->set_title(dock->get_name());
|
||||
window->set_title(TTRGET(dock->get_name()));
|
||||
Panel *p = memnew(Panel);
|
||||
p->add_theme_style_override("panel", gui_base->get_theme_stylebox(SNAME("PanelForeground"), SNAME("EditorStyles")));
|
||||
p->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user