From 40f2d89e154307050127fcae53aa6e7bec734781 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Sat, 20 Sep 2025 00:14:12 +0200 Subject: [PATCH] ask relaunch on crash Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com> --- main.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 40e6c0b..30ef422 100644 --- a/main.ts +++ b/main.ts @@ -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() } })