diff --git a/src/behaviours/application-update/installing-update-using-topbar-button.test.tsx b/src/behaviours/application-update/installing-update-using-topbar-button.test.tsx index 46946afb3e..c6ff69d145 100644 --- a/src/behaviours/application-update/installing-update-using-topbar-button.test.tsx +++ b/src/behaviours/application-update/installing-update-using-topbar-button.test.tsx @@ -73,7 +73,7 @@ describe("encourage user to update when sufficient time passed since update was }); describe("given the update check", () => { - let processCheckingForUpdates: (source: string) => Promise<{ updateWasDiscoveredAndDownloaded: boolean }>; + let processCheckingForUpdates: (source: string) => Promise<{ updateIsReadyToBeInstalled: boolean }>; beforeEach(async () => { processCheckingForUpdates = applicationBuilder.dis.mainDi.inject( diff --git a/src/behaviours/application-update/installing-update.test.ts b/src/behaviours/application-update/installing-update.test.ts index 828d6aa0f2..efc7da8498 100644 --- a/src/behaviours/application-update/installing-update.test.ts +++ b/src/behaviours/application-update/installing-update.test.ts @@ -63,7 +63,7 @@ describe("installing update", () => { describe("when started", () => { let rendered: RenderResult; - let processCheckingForUpdates: (source: string) => Promise<{ updateWasDiscoveredAndDownloaded: boolean }>; + let processCheckingForUpdates: (source: string) => Promise<{ updateIsReadyToBeInstalled: boolean }>; beforeEach(async () => { rendered = await applicationBuilder.render(); diff --git a/src/behaviours/application-update/selection-of-update-stability.test.ts b/src/behaviours/application-update/selection-of-update-stability.test.ts index 1a21b2f600..c2407079df 100644 --- a/src/behaviours/application-update/selection-of-update-stability.test.ts +++ b/src/behaviours/application-update/selection-of-update-stability.test.ts @@ -67,7 +67,7 @@ describe("selection of update stability", () => { describe("when started", () => { let rendered: RenderResult; - let processCheckingForUpdates: (source: string) => Promise<{ updateWasDiscoveredAndDownloaded: boolean }>; + let processCheckingForUpdates: (source: string) => Promise<{ updateIsReadyToBeInstalled: boolean }>; beforeEach(async () => { rendered = await applicationBuilder.render(); diff --git a/src/main/application-update/check-for-updates-tray-item.injectable.ts b/src/main/application-update/check-for-updates-tray-item.injectable.ts index c47bce1ac9..82bdbfbbd4 100644 --- a/src/main/application-update/check-for-updates-tray-item.injectable.ts +++ b/src/main/application-update/check-for-updates-tray-item.injectable.ts @@ -59,9 +59,9 @@ const checkForUpdatesTrayItemInjectable = getInjectable({ click: pipeline( async () => { - const { updateWasDiscoveredAndDownloaded } = await processCheckingForUpdates("tray"); + const { updateIsReadyToBeInstalled } = await processCheckingForUpdates("tray"); - if (updateWasDiscoveredAndDownloaded) { + if (updateIsReadyToBeInstalled) { await showApplicationWindow(); } }, diff --git a/src/main/application-update/check-for-updates/process-checking-for-updates.injectable.ts b/src/main/application-update/check-for-updates/process-checking-for-updates.injectable.ts index 64e082ac1e..b669c6a2ea 100644 --- a/src/main/application-update/check-for-updates/process-checking-for-updates.injectable.ts +++ b/src/main/application-update/check-for-updates/process-checking-for-updates.injectable.ts @@ -42,7 +42,7 @@ const processCheckingForUpdatesInjectable = getInjectable({ checkingForUpdatesState.set(false); }); - return { updateWasDiscoveredAndDownloaded: false }; + return { updateIsReadyToBeInstalled: false }; } const { version, actualUpdateChannel } = result; @@ -54,7 +54,7 @@ const processCheckingForUpdatesInjectable = getInjectable({ checkingForUpdatesState.set(false); }); - return { updateWasDiscoveredAndDownloaded: true }; + return { updateIsReadyToBeInstalled: true }; } emitEvent({ @@ -74,7 +74,7 @@ const processCheckingForUpdatesInjectable = getInjectable({ const { downloadWasSuccessful } = await downloadUpdate(); - return { updateWasDiscoveredAndDownloaded: downloadWasSuccessful }; + return { updateIsReadyToBeInstalled: downloadWasSuccessful }; }; }, });