From bfeeeebb186d147754345cc933e4eb770cd56c67 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 2 Dec 2020 18:54:31 +0100 Subject: [PATCH] Show the echo test for the webclient only --- shared/js/ui/frames/menu-bar/MainMenu.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/shared/js/ui/frames/menu-bar/MainMenu.ts b/shared/js/ui/frames/menu-bar/MainMenu.ts index 37e0855e..e460c58c 100644 --- a/shared/js/ui/frames/menu-bar/MainMenu.ts +++ b/shared/js/ui/frames/menu-bar/MainMenu.ts @@ -171,13 +171,15 @@ 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 - }); + if(__build.target === "web") { + 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",