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:
parent
3fd6ea633a
commit
7b44dc32c4
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,6 @@ function startInstaller(): ThunkAction<
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.IPC.removeSetupMenuItems();
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: SET_PROVISIONING_URL,
|
type: SET_PROVISIONING_URL,
|
||||||
payload: url,
|
payload: url,
|
||||||
|
@ -357,6 +356,7 @@ function finishInstall(
|
||||||
try {
|
try {
|
||||||
const data = provisioner.prepareLinkData(options);
|
const data = provisioner.prepareLinkData(options);
|
||||||
await accountManager.registerSecondDevice(data);
|
await accountManager.registerSecondDevice(data);
|
||||||
|
window.IPC.removeSetupMenuItems();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof HTTPError) {
|
if (error instanceof HTTPError) {
|
||||||
switch (error.code) {
|
switch (error.code) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue