Improve speed of setting sound string as well
This commit is contained in:
parent
3fdc5900e3
commit
7863b9caa0
|
@ -61,8 +61,8 @@ export default function SettingsPage() {
|
||||||
copyTo: 'documentDirectory',
|
copyTo: 'documentDirectory',
|
||||||
})
|
})
|
||||||
if (!fileCopyUri) return
|
if (!fileCopyUri) return
|
||||||
await settingsRepo.save({...settings, sound: fileCopyUri})
|
|
||||||
setValue('sound', fileCopyUri)
|
setValue('sound', fileCopyUri)
|
||||||
|
await settingsRepo.save({...settings, sound: fileCopyUri})
|
||||||
toast('Sound will play after rest timers.')
|
toast('Sound will play after rest timers.')
|
||||||
}, [settings, setValue])
|
}, [settings, setValue])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user