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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();
}