fix: hide welcome modal on restore

The welcome modal is now hidden if the application is started from a restore point.
This commit is contained in:
google-labs-jules[bot]
2026-01-21 08:06:32 +00:00
committed by Carlos Valente
parent efede83271
commit 14f9472250
+4 -1
View File
@@ -184,7 +184,10 @@ export const startServer = async (): Promise<{ message: string; serverPort: numb
// the express server must be started before the socket otherwise the on error event listener will not attach properly
const resultPort = await serverTryDesiredPort(expressServer, desiredPort);
await getDataProvider().setSettings({ ...settings, serverPort: resultPort });
const showWelcome = await getShowWelcomeDialog();
let showWelcome = await getShowWelcomeDialog();
if (restorePoint) {
showWelcome = false;
}
socket.init(expressServer, showWelcome, prefix);