Don't hide/show top editor if they did not change, fixes #26644

This commit is contained in:
Juan Linietsky 2019-03-06 12:42:01 -03:00
parent 5f079e2ef9
commit 6eac688952
2 changed files with 16 additions and 4 deletions

View file

@ -355,8 +355,8 @@ void ShaderEditor::_menu_option(int p_option) {
void ShaderEditor::_notification(int p_what) {
if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {
if (is_visible_in_tree())
shader_editor->get_text_edit()->grab_focus();
//if (is_visible_in_tree())
// shader_editor->get_text_edit()->grab_focus();
}
}