From 6b97cbfc1703c87cfa402420abee6129258ef4d3 Mon Sep 17 00:00:00 2001 From: Anton Bracke Date: Tue, 22 Feb 2022 18:10:36 +0100 Subject: [PATCH] nits, fixes --- desktop/electron/src/ipc.ts | 4 ++-- desktop/local-app/src/lib/KeyRecord.svelte | 1 + desktop/local-app/src/views/Server.svelte | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/desktop/electron/src/ipc.ts b/desktop/electron/src/ipc.ts index 31a28d35..c62ba157 100644 --- a/desktop/electron/src/ipc.ts +++ b/desktop/electron/src/ipc.ts @@ -13,7 +13,7 @@ export function emitMuteToggle() { throw new Error("Main window not found"); } - appView.webContents.send("app:on-camera-toggle"); + appView.webContents.send("app:on-mute-toggle"); } export function emitCameraToggle() { @@ -22,7 +22,7 @@ export function emitCameraToggle() { throw new Error("Main window not found"); } - appView.webContents.send("app:on-mute-toggle"); + appView.webContents.send("app:on-camera-toggle"); } export default () => { diff --git a/desktop/local-app/src/lib/KeyRecord.svelte b/desktop/local-app/src/lib/KeyRecord.svelte index 8dc168cf..da01d623 100644 --- a/desktop/local-app/src/lib/KeyRecord.svelte +++ b/desktop/local-app/src/lib/KeyRecord.svelte @@ -103,6 +103,7 @@ recording = false; shortCut = []; value = ""; + dispatch("change", value); } function stopRecording() { diff --git a/desktop/local-app/src/views/Server.svelte b/desktop/local-app/src/views/Server.svelte index e53f618e..7b086101 100644 --- a/desktop/local-app/src/views/Server.svelte +++ b/desktop/local-app/src/views/Server.svelte @@ -2,7 +2,7 @@ import { onDestroy, onMount } from "svelte"; import { useParams } from "svelte-navigator"; - import { selectServer, servers } from "~/store"; + import { selectServer, servers, selectedServer } from "~/store"; import { api } from "~/lib/ipc"; const params = useParams(); @@ -17,6 +17,7 @@ onDestroy(async () => { await api.showLocalApp(); + $selectedServer = ""; }); $: server = $servers.find(({ _id }) => _id === $params.id);