Add option to reset cache

This commit is contained in:
TC
2021-02-06 22:15:57 +01:00
parent d6f7c54370
commit 3976d1c862
3 changed files with 14 additions and 0 deletions

View File

@ -196,6 +196,11 @@ app.on("activate", () => {
});
app.on("ready", () => {
if (config.get("options.autoResetAppCache")) {
// Clear cache
electron.session.defaultSession.clearCache();
}
mainWindow = createMainWindow();
setApplicationMenu(mainWindow);
if (config.get("options.restartOnConfigChanges")) {