From c0ee8d7ee86e14d88c75a4a0c622fb95d43cff7c Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Thu, 15 Aug 2024 14:57:36 +0200 Subject: [PATCH] don't use toast for fatal error --- src/renderer/src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/util.ts b/src/renderer/src/util.ts index 1b48c27c..2230d090 100644 --- a/src/renderer/src/util.ts +++ b/src/renderer/src/util.ts @@ -177,7 +177,7 @@ export function handleError(arg1: unknown, arg2?: unknown) { if (err != null && 'code' in err && err.code === 'LLC_FFPROBE_UNSUPPORTED_FILE') { errorToast(i18n.t('Unsupported file')); } else { - toast.fire({ + Swal.fire({ icon: 'error', title: str || i18n.t('An error has occurred.'), text: err?.message ? err?.message.slice(0, 300) : undefined,