diff --git a/apps/desktop/src/components/windows/inner/Recorder.tsx b/apps/desktop/src/components/windows/inner/Recorder.tsx index 8af0a81c..3e0eb6fb 100644 --- a/apps/desktop/src/components/windows/inner/Recorder.tsx +++ b/apps/desktop/src/components/windows/inner/Recorder.tsx @@ -183,7 +183,7 @@ export const Recorder = () => { tauriWindow.then(({ getAll }) => { getAll().forEach((window) => { if (window.label !== "camera") { - window.hide(); + window.minimize(); } }); }); @@ -235,6 +235,13 @@ export const Recorder = () => { } setStoppingRecording(true); + tauriWindow.then(({ WebviewWindow }) => { + const main = WebviewWindow.getByLabel("main"); + if (main) { + main.unminimize(); + } + }); + try { console.log("Stopping recordings..."); @@ -253,6 +260,9 @@ export const Recorder = () => { ? `${process.env.NEXT_PUBLIC_URL}/s/${await getLatestVideoId()}` : `https://cap.link/${await getLatestVideoId()}`; + const audio = new Audio("/recording-end.mp3"); + await audio.play(); + if ( !process.env.NEXT_PUBLIC_LOCAL_MODE || process.env.NEXT_PUBLIC_LOCAL_MODE !== "true"