Merge pull request #21971 from scayze/window_title_update

Update window title when switching scenes
This commit is contained in:
Rémi Verschelde 2018-09-11 13:03:11 +02:00 committed by GitHub
commit 4c37ea59be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2757,6 +2757,8 @@ void EditorNode::set_current_scene(int p_idx) {
Dictionary state = editor_data.restore_edited_scene_state(editor_selection, &editor_history); Dictionary state = editor_data.restore_edited_scene_state(editor_selection, &editor_history);
_edit_current(); _edit_current();
_update_title();
call_deferred("_set_main_scene_state", state, get_edited_scene()); //do after everything else is done setting up call_deferred("_set_main_scene_state", state, get_edited_scene()); //do after everything else is done setting up
} }