Skip to content

Commit 97f90dd

Browse files
committed
fix: only allow downgrade when on nightly channel
Set allowDowngrade to true only when channel is 'nightly', preserving the existing behavior for stable ('latest') channel users where the auto-updater never offers a lower version.
1 parent aa4c156 commit 97f90dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ function createBaseUpdateState(
10931093
function applyAutoUpdaterChannel(channel: DesktopUpdateChannel): void {
10941094
autoUpdater.channel = channel;
10951095
autoUpdater.allowPrerelease = channel === "nightly";
1096-
autoUpdater.allowDowngrade = true;
1096+
autoUpdater.allowDowngrade = channel === "nightly";
10971097
console.info(
10981098
`[desktop-updater] Using update channel '${channel}' (allowPrerelease=${channel === "nightly"}).`,
10991099
);

0 commit comments

Comments
 (0)