Fix opening docs writing extra navigation history

Fix #82292
Removes extraneous call to change the tab if the page wasn't yet open when opening class member description.

(cherry picked from commit 0506d6f192)
This commit is contained in:
aXu-AP 2023-09-29 00:03:18 +03:00 committed by Rémi Verschelde
parent fc42a18ffe
commit a05e15944e
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 0 additions and 1 deletions

View File

@ -3390,7 +3390,6 @@ void ScriptEditor::_help_class_goto(const String &p_desc) {
eh->set_name(cname); eh->set_name(cname);
tab_container->add_child(eh); tab_container->add_child(eh);
_go_to_tab(tab_container->get_tab_count() - 1);
eh->go_to_help(p_desc); eh->go_to_help(p_desc);
eh->connect("go_to_help", callable_mp(this, &ScriptEditor::_help_class_goto)); eh->connect("go_to_help", callable_mp(this, &ScriptEditor::_help_class_goto));
_add_recent_script(eh->get_class()); _add_recent_script(eh->get_class());