fix(AboutSettings.tsx): handle errors in update check by setting loading state
This commit is contained in:
parent
8719d5c330
commit
a39beb3841
@ -20,7 +20,13 @@ const AboutSettings: FC = () => {
|
||||
async () => {
|
||||
if (checkUpdateLoading || downloading) return
|
||||
setCheckUpdateLoading(true)
|
||||
|
||||
try {
|
||||
await window.api.checkForUpdate()
|
||||
} catch (error) {
|
||||
setCheckUpdateLoading(false)
|
||||
}
|
||||
|
||||
setCheckUpdateLoading(false)
|
||||
},
|
||||
2000,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user