it auto saves
This commit is contained in:
1 file changed
-2
@@ -73,7 +73,6 @@ export default function Settings () {
|
|||||||
setMovingData(true)
|
setMovingData(true)
|
||||||
await invoke('move_game_data', { destination: '' })
|
await invoke('move_game_data', { destination: '' })
|
||||||
await settings?.set('customDataLocation', '')
|
await settings?.set('customDataLocation', '')
|
||||||
await settings?.save()
|
|
||||||
await invoke('restart_app')
|
await invoke('restart_app')
|
||||||
} catch {
|
} catch {
|
||||||
setMovingData(false)
|
setMovingData(false)
|
||||||
@@ -88,7 +87,6 @@ export default function Settings () {
|
|||||||
setMovingData(true)
|
setMovingData(true)
|
||||||
await invoke('move_game_data', { destination: selected })
|
await invoke('move_game_data', { destination: selected })
|
||||||
await settings?.set('customDataLocation', selected)
|
await settings?.set('customDataLocation', selected)
|
||||||
await settings?.save()
|
|
||||||
await invoke('restart_app')
|
await invoke('restart_app')
|
||||||
} catch {
|
} catch {
|
||||||
setMovingData(false)
|
setMovingData(false)
|
||||||
|
|||||||
Reference in new issue
Block a user