Refine the clear all data experience

This commit is contained in:
Josh Perez
2021-08-24 16:57:34 -04:00
committed by GitHub
parent 488ac22860
commit 8045a83374
11 changed files with 127 additions and 199 deletions

View File

@@ -1681,6 +1681,9 @@ ipc.on('close-settings', () => {
});
ipc.on('delete-all-data', () => {
if (settingsWindow) {
settingsWindow.close();
}
if (mainWindow && mainWindow.webContents) {
mainWindow.webContents.send('delete-all-data');
}