1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Replace some bits of code left to work with the new TabContainer

This commit is contained in:
Michael Alexsander
2022-03-04 19:16:33 -03:00
parent 71835906dd
commit 917dac78e7
5 changed files with 10 additions and 8 deletions

View File

@@ -228,7 +228,7 @@ void CustomPropertyEditor::_menu_option(int p_which) {
file_system_dock->navigate_to_path(r->get_path());
// Ensure that the FileSystem dock is visible.
TabContainer *tab_container = (TabContainer *)file_system_dock->get_parent_control();
tab_container->set_current_tab(file_system_dock->get_index());
tab_container->set_current_tab(tab_container->get_tab_idx_from_control(file_system_dock));
} break;
default: {
if (p_which >= CONVERT_BASE_ID) {