commit be46ea6833028362170354ce5de10cd4771bbd59
parent bc9d18d02d518055a4c1a5d5686ca13a0dc8cf7a
Author: Hunter
Date: Thu, 16 Jul 2026 17:25:29 -0400
frame number-aware dialog when navigating away from painting/animation
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
@@ -711,7 +711,7 @@
}
async function importFile(file) {
- if (dirty && !confirm('Importing will discard the current painting. Continue?')) return;
+ if (dirty && !confirm('Importing will discard the current ' + (frames.length > 1 ? 'animation' : 'painting') + '. Continue?')) return;
if (playing) stopPlayback();
// ImageDecoder gives us every frame of an animated gif; fall back to
// single-image import where unsupported