warn on failed update, closes #56

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-10-24 11:47:55 +02:00
parent 7464bb0d23
commit c4c60c087f
+14 -4
View File
@@ -366,10 +366,20 @@ function GeneralSection() {
console.error(error)
setIsWorkingUpdate(false)
setUpdateButtonText('Tap to retry')
await message('An error occurred in the update process. Please try again.', {
title: 'Update Error',
kind: 'error',
})
const wantsManualDownload = await ask(
'An error occurred in the update process. Please try again or tap "Download" to download the update manually.',
{
title: 'Update Error',
kind: 'error',
okLabel: 'Download',
cancelLabel: 'Cancel',
}
)
if (wantsManualDownload) {
await openUrl('https://github.com/rclone-ui/rclone-ui/releases/latest')
}
return
}