mirror of
https://github.com/cpvalente/ontime.git
synced 2026-07-26 10:38:55 +00:00
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:
committed by
Carlos Valente
parent
efede83271
commit
14f9472250
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user