mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2026-02-04 09:25:16 +01:00
Update folder check
This commit is contained in:
@@ -344,9 +344,11 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
const pathArr = this.state.game_install_path.replace(/\\/g, '/').split('/')
|
const pathArr = this.state.game_install_path.replace(/\\/g, '/').split('/')
|
||||||
pathArr.pop()
|
pathArr.pop()
|
||||||
const path = pathArr.join('/') + '/GenshinImpact_Data/webCaches'
|
const path = pathArr.join('/') + '/GenshinImpact_Data/webCaches'
|
||||||
|
const path2 = pathArr.join('/') + '/Yuanshen_Data/webCaches'
|
||||||
|
|
||||||
// Delete the folder
|
// Delete the folder
|
||||||
await invoke('dir_delete', { path: path })
|
await invoke('dir_delete', { path: path })
|
||||||
|
await invoke('dir_delete', { path: path2 })
|
||||||
}
|
}
|
||||||
|
|
||||||
async toggleOption(opt: keyof Configuration) {
|
async toggleOption(opt: keyof Configuration) {
|
||||||
|
|||||||
Reference in New Issue
Block a user