From 23aa06b4862dcfadb8cd04b9fbabdb7cb9eb0204 Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Thu, 3 Oct 2024 14:19:24 -0400 Subject: [PATCH] Make the loading toast not attempt to display a version number --- src/index.tsx | 4 ++-- src/main.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index e18ecc875..4ce2fff5a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -57,8 +57,8 @@ reportWebVitals() if (isDesktop()) { // Listen for update download progress to begin // to show a loading toast. - window.electron.onUpdateDownloadStart(({ version }) => { - const message = `Downloading update (${version})...` + window.electron.onUpdateDownloadStart(() => { + const message = `Downloading app update...` console.log(message) toast.loading(message, { id: AUTO_UPDATER_TOAST_ID }) }) diff --git a/src/main.ts b/src/main.ts index 85c383eb7..7f8c9d614 100644 --- a/src/main.ts +++ b/src/main.ts @@ -271,7 +271,8 @@ app.on('ready', () => { }) autoUpdater.prependOnceListener('download-progress', (progress) => { - // For now, we'll send the version to the loading toast start. + // For now, we'll send nothing and just start a loading spinner. + // See below for a TODO to send progress data to the renderer. console.log('update-download-start', { version: '', })