diff options
author | Kristóf Marussy <kristof@marussy.com> | 2024-01-03 03:46:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 03:46:28 +0100 |
commit | b0b9860f68b0a151841d0c145a11ea39c11fa66a (patch) | |
tree | dda676c476500bd08622ca0dc831f6f1da915bcb /src/lib | |
parent | 6.7.1-nightly.2 [skip ci] (diff) | |
download | ferdium-app-b0b9860f68b0a151841d0c145a11ea39c11fa66a.tar.gz ferdium-app-b0b9860f68b0a151841d0c145a11ea39c11fa66a.tar.zst ferdium-app-b0b9860f68b0a151841d0c145a11ea39c11fa66a.zip |
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.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/dbus/Ferdium.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/dbus/Ferdium.ts b/src/lib/dbus/Ferdium.ts index b2a9105f4..853be68e1 100644 --- a/src/lib/dbus/Ferdium.ts +++ b/src/lib/dbus/Ferdium.ts | |||
@@ -31,6 +31,10 @@ export default class Ferdium extends dbus.interface.Interface { | |||
31 | this.dbus.trayIcon._toggleWindow(); | 31 | this.dbus.trayIcon._toggleWindow(); |
32 | } | 32 | } |
33 | 33 | ||
34 | ToggleToTalk(): void { | ||
35 | this.dbus.trayIcon.mainWindow?.webContents.send('toggle-to-talk'); | ||
36 | } | ||
37 | |||
34 | emitUnreadChanged(): void { | 38 | emitUnreadChanged(): void { |
35 | Ferdium.emitPropertiesChanged( | 39 | Ferdium.emitPropertiesChanged( |
36 | this, | 40 | this, |
@@ -66,6 +70,10 @@ Ferdium.configureMembers({ | |||
66 | inSignature: '', | 70 | inSignature: '', |
67 | outSignature: '', | 71 | outSignature: '', |
68 | }, | 72 | }, |
73 | ToggleToTalk: { | ||
74 | inSignature: '', | ||
75 | outSignature: '', | ||
76 | }, | ||
69 | }, | 77 | }, |
70 | properties: { | 78 | properties: { |
71 | Muted: { | 79 | Muted: { |