show setup window if DB is not initialized

This commit is contained in:
zadam
2020-02-19 22:09:49 +01:00
parent ad7a55d305
commit fe31f08c0d
2 changed files with 6 additions and 5 deletions

View File

@@ -26,9 +26,9 @@ app.on('ready', async () => {
await sqlInit.dbConnection;
// if schema doesn't exist -> setup process
// if schema exists, then we need to wait until the migration process is finished
if (await sqlInit.schemaExists()) {
// if db is not initialized -> setup process
// if db is initialized, then we need to wait until the migration process is finished
if (await sqlInit.isDbInitialized()) {
await sqlInit.dbReady;
await windowService.createMainWindow();