mirror of
https://github.com/storytold/soundcraft.git
synced 2026-10-31 05:56:47 -06:00
Close Session, New, Open, Revert, Quit, the window's close button, dropping a session file on the window and opening one from the Workspace window all replaced or closed the session without asking, so unsaved edits were lost (#136). They now ask first: Save, Don't Save or Cancel. Save on a session that has never been saved goes through Save As, then carries on. Revert asks for confirmation instead, and Revert to Saved is unavailable until the session has a file. A take being recorded is stopped first, so it counts as a change. The web build has nowhere to save, so it offers only Don't Save and Cancel. Calls from the control channel, MCP and the CLI never ask. Selecting, locating, zooming and scrolling no longer mark the session modified, so the question only comes after real edits. Undoing back to the saved state makes the session clean again. The engine compares the document with the one last opened or saved, ignoring the selection, the playhead and the zoom, once per revision. Fixes #136