From 3aee35fe0158c8f58c3e6d42b8fa3eeeedd7b724 Mon Sep 17 00:00:00 2001 From: raykholo Date: Wed, 4 Nov 2026 21:26:23 +0000 Subject: [PATCH] Web app: keep unsaved work in the browser instead of the leave-page box (#10220) (#10221) * claim: #10220 * Web app: keep unsaved work in the browser instead of the leave-page box (#10220) A new preference, off by default, on Preferences > General > Saving (web app only): "Keep unsaved work in this browser instead of asking when the tab closes". With it on, each open design with unsaved changes keeps a copy in the browser's private storage (keep--.sc/.json), written once the design has been still for 0.8 s (at most 4 s after the first change it lacks) and again on pagehide or when the page is hidden. While every copy is current, beforeunload doesn't ask. A copy goes when its design is saved, closed, or the preference is turned off. The next visit offers the copies newer than their design's last save in SolidCraft's own window, "Restore unsaved design: , changed