🐛 Fix(custom): fix cache issues in gallery image

ISSUES CLOSED: #288
This commit is contained in:
Kuingsmile
2025-02-27 16:47:07 +08:00
parent 58991e3704
commit 9a93314118
2 changed files with 38 additions and 3 deletions

View File

@@ -142,7 +142,9 @@ export default [
action: IRPCActionType.REFRESH_SETTING_WINDOW,
handler: async () => {
const settingWindow = windowManager.get(IWindowList.SETTING_WINDOW)!
settingWindow.webContents.reloadIgnoringCache()
settingWindow.webContents.session.clearCache().then(() => {
settingWindow.webContents.reloadIgnoringCache()
})
}
}
]