mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 03:41:46 +00:00
Add option to reset cache
This commit is contained in:
5
index.js
5
index.js
@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user