nits, fixes

This commit is contained in:
Anton Bracke 2022-02-22 18:10:36 +01:00
parent 732acb25df
commit 6b97cbfc17
No known key found for this signature in database
GPG Key ID: B1222603899C6B25
3 changed files with 5 additions and 3 deletions

View File

@ -13,7 +13,7 @@ export function emitMuteToggle() {
throw new Error("Main window not found"); throw new Error("Main window not found");
} }
appView.webContents.send("app:on-camera-toggle"); appView.webContents.send("app:on-mute-toggle");
} }
export function emitCameraToggle() { export function emitCameraToggle() {
@ -22,7 +22,7 @@ export function emitCameraToggle() {
throw new Error("Main window not found"); throw new Error("Main window not found");
} }
appView.webContents.send("app:on-mute-toggle"); appView.webContents.send("app:on-camera-toggle");
} }
export default () => { export default () => {

View File

@ -103,6 +103,7 @@
recording = false; recording = false;
shortCut = []; shortCut = [];
value = ""; value = "";
dispatch("change", value);
} }
function stopRecording() { function stopRecording() {

View File

@ -2,7 +2,7 @@
import { onDestroy, onMount } from "svelte"; import { onDestroy, onMount } from "svelte";
import { useParams } from "svelte-navigator"; import { useParams } from "svelte-navigator";
import { selectServer, servers } from "~/store"; import { selectServer, servers, selectedServer } from "~/store";
import { api } from "~/lib/ipc"; import { api } from "~/lib/ipc";
const params = useParams(); const params = useParams();
@ -17,6 +17,7 @@
onDestroy(async () => { onDestroy(async () => {
await api.showLocalApp(); await api.showLocalApp();
$selectedServer = "";
}); });
$: server = $servers.find(({ _id }) => _id === $params.id); $: server = $servers.find(({ _id }) => _id === $params.id);