Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix: resolve quitAndInstall hang by removing close listeners that block window shutdown during updates
Gabriel Stein27fcd48d3606
diff --git a/src/updater.js b/src/updater.jsindex e9e4adc9f..dbabb3f77 100644--- a/src/updater.js+++ b/src/updater.js@@ -220,13 +220,17 @@ class UpdateManager {this.isInstalling = true;console.log("🔄 Installing update and restarting...");- const { app } = require("electron");- app.emit("before-quit");+ const { app, BrowserWindow } = require("electron");- setTimeout(() => {- const isSilent = process.platform === "win32";- autoUpdater.quitAndInstall(isSilent, true);- }, 100);+ // Remove listeners that prevent windows from closing+ // so quitAndInstall can shut down cleanly+ app.removeAllListeners("window-all-closed");+ BrowserWindow.getAllWindows().forEach((win) => {+ win.removeAllListeners("close");+ });++ const isSilent = process.platform === "win32";+ autoUpdater.quitAndInstall(isSilent, true);return { success: true, message: "Update installation started" };} catch (error) {