diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-12-18 10:31:30 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-12-19 13:09:20 +0200 |
commit | d8bb4c71639a69432e38f144d17926d8744d9daf (patch) | |
tree | 4dd032f8d3ad3b04ac2e5f799ec5e1ef7827946d | |
parent | bf8dd73e9d88d6ab146506699f43230b12c6a2b0 (diff) | |
download | redot-engine-d8bb4c71639a69432e38f144d17926d8744d9daf.tar.gz |
[macOS] Fix updating editor tab titles in the dock menu.
-rw-r--r-- | editor/gui/editor_scene_tabs.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/gui/editor_scene_tabs.cpp b/editor/gui/editor_scene_tabs.cpp index 7c74432ee9..7f8f2fd8a3 100644 --- a/editor/gui/editor_scene_tabs.cpp +++ b/editor/gui/editor_scene_tabs.cpp @@ -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"); |