frame number-aware dialog when navigating away from painting/animation
Hunter
Thursday, July 16th, 2026 at 5:25 PM
711 }
712
713 async function importFile(file) {
- if (dirty && !confirm('Importing will discard the current painting. Continue?')) return;
714 + if (dirty && !confirm('Importing will discard the current ' + (frames.length > 1 ? 'animation' : 'painting') + '. Continue?')) return;
715 if (playing) stopPlayback();
716 // ImageDecoder gives us every frame of an animated gif; fall back to
717 // single-image import where unsupported