Skip to content

Commit 1f5d4a6

Browse files
committed
Merge pull request #86290 from bruvzg/mac_tab_menu
[macOS] Fix updating editor tab titles in the dock menu.
2 parents 508ad59 + d8bb4c7 commit 1f5d4a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editor/gui/editor_scene_tabs.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,14 @@ void EditorSceneTabs::_disable_menu_option_if(int p_option, bool p_condition) {
191191
}
192192

193193
void EditorSceneTabs::update_scene_tabs() {
194+
static bool menu_initialized = false;
194195
tab_preview_panel->hide();
195196

196-
if (scene_tabs->get_tab_count() == EditorNode::get_editor_data().get_edited_scene_count()) {
197+
if (menu_initialized && scene_tabs->get_tab_count() == EditorNode::get_editor_data().get_edited_scene_count()) {
197198
_update_tab_titles();
198199
return;
199200
}
201+
menu_initialized = true;
200202

201203
if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_GLOBAL_MENU)) {
202204
DisplayServer::get_singleton()->global_menu_clear("_dock");

0 commit comments

Comments
 (0)