From b1fa3478bb3e6450d3b861ef15440ff0444264be Mon Sep 17 00:00:00 2001 From: trevor-signal <131492920+trevor-signal@users.noreply.github.com> Date: Tue, 10 Sep 2024 14:49:52 -0400 Subject: [PATCH] Wait for successful link before removing some setup menu items --- ts/state/ducks/installer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/state/ducks/installer.ts b/ts/state/ducks/installer.ts index 0567bdd8ad57..be1c744004b3 100644 --- a/ts/state/ducks/installer.ts +++ b/ts/state/ducks/installer.ts @@ -199,7 +199,6 @@ function startInstaller(): ThunkAction< return; } - window.IPC.removeSetupMenuItems(); dispatch({ type: SET_PROVISIONING_URL, payload: url, @@ -357,6 +356,7 @@ function finishInstall( try { const data = provisioner.prepareLinkData(options); await accountManager.registerSecondDevice(data); + window.IPC.removeSetupMenuItems(); } catch (error) { if (error instanceof HTTPError) { switch (error.code) {