Fix linking screen lost connection retry button

This commit is contained in:
ayumi-signal 2024-01-26 16:56:58 -08:00 committed by GitHub
parent fd187a353c
commit 6fa12e006e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -282,7 +282,10 @@ export function SmartInstallScreen(): ReactElement {
i18n,
error: state.error,
quit: () => window.IPC.shutdown(),
tryAgain: () => setState(INITIAL_STATE),
tryAgain: () => {
setRetryCounter(count => count + 1);
setState(INITIAL_STATE);
},
},
};
break;