So that the submenus are installed even if bluez isn't available. --- client/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/main.c b/client/main.c index 4ae6f121d424..144e17622e95 100644 --- a/client/main.c +++ b/client/main.c @@ -3187,6 +3187,10 @@ int main(int argc, char *argv[]) bt_shell_add_submenu(&advertise_monitor_menu); bt_shell_add_submenu(&scan_menu); bt_shell_add_submenu(&gatt_menu); + admin_add_submenu(); + player_add_submenu(); + mgmt_add_submenu(); + assistant_add_submenu(); bt_shell_set_prompt(PROMPT_OFF); if (agent_option) @@ -3203,13 +3207,9 @@ int main(int argc, char *argv[]) bt_shell_set_env("AUTO_REGISTER_ENDPOINT", (void *)endpoint_option); - admin_add_submenu(); admin_enable_submenu(); - player_add_submenu(); player_enable_submenu(); - mgmt_add_submenu(); mgmt_enable_submenu(); - assistant_add_submenu(); assistant_enable_submenu(); client = g_dbus_client_new(dbus_conn, "org.bluez", "/org/bluez"); -- 2.47.0