1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-21 18:02:35 +01:00

don't use toast for fatal error

This commit is contained in:
Mikael Finstad 2024-08-15 14:57:36 +02:00
parent b32d1958e5
commit c0ee8d7ee8
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -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,