From f31ff61518059163e6d251308d876225795a517f Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 28 Nov 2020 15:34:28 +0100 Subject: [PATCH] Added an echo test menu entry within the tools secion --- shared/js/ui/frames/menu-bar/MainMenu.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shared/js/ui/frames/menu-bar/MainMenu.ts b/shared/js/ui/frames/menu-bar/MainMenu.ts index 8c6c3724..18095df4 100644 --- a/shared/js/ui/frames/menu-bar/MainMenu.ts +++ b/shared/js/ui/frames/menu-bar/MainMenu.ts @@ -170,6 +170,14 @@ function renderToolItems() : MenuBarEntry[] { const items: MenuBarEntry[] = []; const currentConnectionConnected = !!server_connections.active_connection()?.connected; + items.push({ + type: "normal", + label: tr("Echo Test"), + icon: ClientIcon.ActivateMicrophone, + click: () => global_client_actions.fire("action_open_window", { window: "server-echo-test" }), + disabled: !currentConnectionConnected + }); + items.push({ type: "normal", label: tr("Ban List"),