Make the loading toast not attempt to display a version number
This commit is contained in:
@ -57,8 +57,8 @@ reportWebVitals()
|
|||||||
if (isDesktop()) {
|
if (isDesktop()) {
|
||||||
// Listen for update download progress to begin
|
// Listen for update download progress to begin
|
||||||
// to show a loading toast.
|
// to show a loading toast.
|
||||||
window.electron.onUpdateDownloadStart(({ version }) => {
|
window.electron.onUpdateDownloadStart(() => {
|
||||||
const message = `Downloading update (${version})...`
|
const message = `Downloading app update...`
|
||||||
console.log(message)
|
console.log(message)
|
||||||
toast.loading(message, { id: AUTO_UPDATER_TOAST_ID })
|
toast.loading(message, { id: AUTO_UPDATER_TOAST_ID })
|
||||||
})
|
})
|
||||||
|
@ -271,7 +271,8 @@ app.on('ready', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
autoUpdater.prependOnceListener('download-progress', (progress) => {
|
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', {
|
console.log('update-download-start', {
|
||||||
version: '',
|
version: '',
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user