diff --git a/editor/script/script_editor_base.cpp b/editor/script/script_editor_base.cpp index bf2a41aa75..2d904ef3ce 100644 --- a/editor/script/script_editor_base.cpp +++ b/editor/script/script_editor_base.cpp @@ -272,6 +272,9 @@ TextEditorBase::EditMenus::EditMenus() { bookmarks_menu->connect("index_pressed", callable_mp(this, &EditMenus::_bookmark_item_pressed)); goto_menu->get_popup()->connect(SceneStringName(id_pressed), callable_mp(this, &EditMenus::_edit_option)); + + // Update immediately for shortcuts. + _update_bookmark_list(); } void TextEditorBase::_make_context_menu(bool p_selection, bool p_foldable, const Vector2 &p_position, bool p_show) { diff --git a/editor/script/script_text_editor.cpp b/editor/script/script_text_editor.cpp index 277ca4c919..6b31f731bd 100644 --- a/editor/script/script_text_editor.cpp +++ b/editor/script/script_text_editor.cpp @@ -196,6 +196,9 @@ ScriptTextEditor::EditMenusSTE::EditMenusSTE() { goto_menu->get_popup()->add_submenu_node_item(TTRC("Breakpoints"), breakpoints_menu); breakpoints_menu->connect("about_to_popup", callable_mp(this, &EditMenusSTE::_update_breakpoint_list)); breakpoints_menu->connect("index_pressed", callable_mp(this, &EditMenusSTE::_breakpoint_item_pressed)); + + // Update immediately for shortcuts. + _update_breakpoint_list(); } ////////////////////////////////////////////////////////////////////////////////