Skip to content

Commit

Permalink
feat: add menu bar item to clear data
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Jul 9, 2023
1 parent b4da701 commit 7fd82d0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/mainWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,17 @@ function initMenuBar(win: BrowserWindow) {
},
toolTip: "Vencord Desktop will automatically restart after this operation"
},
{
label: "Clear data",
async click() {
await win.webContents.session.clearStorageData();
await win.webContents.session.clearCache();
await win.webContents.session.clearCodeCaches({});
app.relaunch();
app.quit();
},
toolTip: "Vencord Desktop will automatically restart after this operation"
},
{
label: "Relaunch",
accelerator: "CmdOrCtrl+Shift+R",
Expand Down

0 comments on commit 7fd82d0

Please sign in to comment.