Wait for successful link before removing some setup menu items

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-09-11 00:08:34 -05:00 committed by GitHub
parent 3fd6ea633a
commit 7b44dc32c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {