fix: remove misleading log and redundant guard in handleCheckForUpdatesMenuClick

The guard for status === 'downloaded' logged 'skipping automatic install'
but the function only checks for updates, never installs. The guard was
also redundant since checkForUpdates() already returns early for
'downloaded', 'downloading', and 'available' statuses with correct
log messages.

Co-authored-by: Julius Marminge <[email protected]>

Applied via @cursor push command
This commit is contained in:
Cursor AgentandJulius Marminge authored and Julius Marminge committed 2026-03-03 22:31:45 -08:00
1 parent 865d7bd684
commit 6d2f4f4cdf
1 file changed
-7
-7
View File
@@ -424,13 +424,6 @@ function dispatchMenuAction(action: string): void {
}
function handleCheckForUpdatesMenuClick(): void {
if (updateState.status === "downloaded") {
console.info(
"[desktop-updater] Check for updates clicked while an update is already downloaded; skipping automatic install.",
);
return;
}
if (!shouldEnableAutoUpdates()) {
console.info("[desktop-updater] Manual update check requested, but updates are disabled.");
return;