diff --git a/main.js b/main.js index 5481c3b..0d86502 100644 --- a/main.js +++ b/main.js @@ -776,8 +776,8 @@ ipcMain.handle('finish-after-active', () => { return true; }); -ipcMain.handle('clear-history', () => { - configStore.clearHistory(); +ipcMain.handle('clear-history', async () => { + await configStore.clearHistory(); return true; });