ask relaunch on crash

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-09-20 00:14:12 +02:00
parent 9417dff4ff
commit 40f2d89e15
+7 -2
View File
@@ -179,11 +179,16 @@ async function startRclone() {
if (event.code === 1 || event.code === 143) {
Sentry.captureException(new Error('Rclone has crashed'))
await message('Rclone has crashed', {
const confirmed = await ask('Rclone has crashed', {
title: 'Error',
kind: 'error',
okLabel: 'Relaunch',
cancelLabel: 'Exit',
})
await exit(0)
if (!confirmed) {
return await exit(0)
}
await relaunch()
}
})