diff --git a/src/renderer/state.ts b/src/renderer/state.ts index 71b3addba2..17bf17afb6 100644 --- a/src/renderer/state.ts +++ b/src/renderer/state.ts @@ -943,6 +943,9 @@ export class AppState { const { version } = ver; + console.log(`State: Switching to Electron ${version}`); + this.version = version; + try { await this.downloadVersion(ver); } catch { @@ -955,9 +958,6 @@ export class AppState { return; } - console.log(`State: Switching to Electron ${version}`); - this.version = version; - // If there's no current fiddle, // or if the current fiddle is the previous version's template, // then load the new version's template.