From 1c7293578c4fcadd4a375c2c3b20bdbce118097d Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Sat, 16 Sep 2023 17:14:44 -0600 Subject: [PATCH] Update folder check --- src/ui/components/menu/Options.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/components/menu/Options.tsx b/src/ui/components/menu/Options.tsx index 2b08105..42cf46e 100644 --- a/src/ui/components/menu/Options.tsx +++ b/src/ui/components/menu/Options.tsx @@ -344,9 +344,11 @@ export default class Options extends React.Component { const pathArr = this.state.game_install_path.replace(/\\/g, '/').split('/') pathArr.pop() const path = pathArr.join('/') + '/GenshinImpact_Data/webCaches' + const path2 = pathArr.join('/') + '/Yuanshen_Data/webCaches' // Delete the folder await invoke('dir_delete', { path: path }) + await invoke('dir_delete', { path: path2 }) } async toggleOption(opt: keyof Configuration) {