From b0b9860f68b0a151841d0c145a11ea39c11fa66a Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 3 Jan 2024 03:46:28 +0100 Subject: Rudimentary DBus toggle-to-talk support (#1507) Adds a ToggleToTalk method to the DBus interface to unmute/mute the microphone in the active service if the recipe supports it. We will need to add support for this feature in recipes. --- src/webview/lib/RecipeWebview.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/webview/lib/RecipeWebview.ts') diff --git a/src/webview/lib/RecipeWebview.ts b/src/webview/lib/RecipeWebview.ts index 44b3c5ab4..31e9a288d 100644 --- a/src/webview/lib/RecipeWebview.ts +++ b/src/webview/lib/RecipeWebview.ts @@ -40,6 +40,8 @@ class RecipeWebview { loopFunc = () => null; + toggleToTalkFunc = () => null; + darkModeHandler: ((darkMode: boolean, config: any) => void) | null = null; // TODO Remove this once we implement a proper wrapper. @@ -199,6 +201,10 @@ class RecipeWebview { openNewWindow(url) { ipcRenderer.sendToHost('new-window', url); } + + toggleToTalk(fn) { + this.toggleToTalkFunc = fn; + } } export default RecipeWebview; -- cgit v1.2.3-54-g00ecf