fix: hardened image-done handling with visible errors; plain-text translation; mobile menu no-icons truncation
All checks were successful
Forgejo Android APK / Root app tests (push) Successful in 55s
Forgejo Android APK / Build signed APK (push) Successful in 2m2s

This commit is contained in:
Daniel 2026-09-09 12:34:28 +02:00
parent 094de9ebd1
commit 118c6cfb64

View file

@ -1269,7 +1269,11 @@ import {
lastGeneratedImageSrc = job.imageUrl;
exporter.invalidate();
loadImageGallery();
if (typeof hooks.onDone === 'function') hooks.onDone(job.imageUrl); else openImagePreview(job.imageUrl);
try {
if (typeof hooks.onDone === 'function') hooks.onDone(job.imageUrl); else openImagePreview(job.imageUrl);
} catch (doneError) {
if (typeof hooks.onError === 'function') hooks.onError('Image ready: ' + String(doneError && doneError.message));
}
return;
}
if (job.status === 'error' || job.status === 'interrupted') {