Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix: scope IPC close-confirm responses to the originating window
makaradame2bdfee65353
diff --git a/electron/main.ts b/electron/main.tsindex 94f0a4274..3e0b2321f 100644--- a/electron/main.ts+++ b/electron/main.ts@@ -295,14 +295,16 @@ function createEditorWindowWrapper() {// Ask renderer to show the custom in-app dialogwindowToClose.webContents.send("request-close-confirm");- ipcMain.once("close-confirm-response", (_, choice: "save" | "discard" | "cancel") => {+ ipcMain.once("close-confirm-response", (event, choice: "save" | "discard" | "cancel") => {+ if (event.sender.id !== windowToClose?.webContents.id) return;isCloseConfirmInFlight = false;if (!windowToClose || windowToClose.isDestroyed()) return;if (choice === "save") {// Tell renderer to save the project, then close when donewindowToClose.webContents.send("request-save-before-close");- ipcMain.once("save-before-close-done", (_, shouldClose: boolean) => {+ ipcMain.once("save-before-close-done", (event, shouldClose: boolean) => {+ if (event.sender.id !== windowToClose?.webContents.id) return;if (!shouldClose) return;forceCloseEditorWindow(windowToClose);});