feat: add menu bar item to clear data
This commit is contained in:
parent
72f83c3ac4
commit
2e92131107
1 changed files with 11 additions and 0 deletions
|
@ -123,6 +123,17 @@ function initMenuBar(win: BrowserWindow) {
|
||||||
},
|
},
|
||||||
toolTip: "Vencord Desktop will automatically restart after this operation"
|
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",
|
label: "Relaunch",
|
||||||
accelerator: "CmdOrCtrl+Shift+R",
|
accelerator: "CmdOrCtrl+Shift+R",
|
||||||
|
|
Reference in a new issue