Skip to content

Commit d1d8f18

Browse files
committed
Don't warn about Electron downgrade from 32.2.7 to 32.0.2
1 parent 902e918 commit d1d8f18

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src-main/migrate.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,12 @@ const migrate = async () => {
117117
if (
118118
settings.dataVersion > MigrateWindow.LATEST_VERSION ||
119119
semverLt(desktopVersion, settings.desktopVersion) ||
120-
semverLt(electronVersion, settings.electronVersion)
120+
(semverLt(electronVersion, settings.electronVersion) && !(
121+
// Our v1.13.0-beta.3 uses Electron 32.2.7, but we then downgraded to 32.0.2 to workaround
122+
// a regression. This is technically a downgrade but it's a very small change so there is
123+
// no data loss, so we don't want to bother the user about the downgrade.
124+
electronVersion === '32.0.2' && settings.electronVersion === '32.2.7'
125+
))
121126
) {
122127
// Something was downgraded. This is not something we officially support.
123128
const changes = [];

0 commit comments

Comments
 (0)