Fix "delete and restart" after database error

This commit is contained in:
Fedor Indutny
2021-07-09 17:43:36 -07:00
committed by GitHub
parent 9c48a95eb5
commit 455820a9cf
3 changed files with 15 additions and 1 deletions

View File

@@ -1318,7 +1318,7 @@ app.on('ready', async () => {
`Database startup error:\n\n${redactAll(sqlError.stack)}`
);
} else {
await sql.sqlCall('removeDB', []);
await sql.removeDB();
removeUserConfig();
app.relaunch();
}