feat: add menu bar item to clear data

This commit is contained in:
Ryan Cao 2023-07-09 17:28:12 +08:00
parent 72f83c3ac4
commit 2e92131107
No known key found for this signature in database

View file

@ -123,6 +123,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",