Wait for successful link before removing some setup menu items
This commit is contained in:
parent
94245a45db
commit
b1fa3478bb
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue