Skip to content

Commit

Permalink
[macOS] Fix updating editor tab titles in the dock menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed Dec 19, 2023
1 parent bf8dd73 commit d8bb4c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/gui/editor_scene_tabs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,14 @@ void EditorSceneTabs::_disable_menu_option_if(int p_option, bool p_condition) {
}

void EditorSceneTabs::update_scene_tabs() {
static bool menu_initialized = false;
tab_preview_panel->hide();

if (scene_tabs->get_tab_count() == EditorNode::get_editor_data().get_edited_scene_count()) {
if (menu_initialized && scene_tabs->get_tab_count() == EditorNode::get_editor_data().get_edited_scene_count()) {
_update_tab_titles();
return;
}
menu_initialized = true;

if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_GLOBAL_MENU)) {
DisplayServer::get_singleton()->global_menu_clear("_dock");
Expand Down

0 comments on commit d8bb4c7

Please sign in to comment.