refactor(video-editor): open every editor on the simple trim view #908
Bug: saving closes the tracks panel but doesn't shrink the window
load() runs when the editor opens, and again after a plain save. For a non-composite edit, save() replaces the file and then calls try await load():
To reproduce:
1. Open More tools (T) on a trim-only edit.
2. Press ⌘S.
The reload builds a fresh Project, so isComposite is false and this line sets showsTracks = false. The panel closes, which is new behaviour: before this PR, load() never touched showsTracks.
The assignment also skips setShowsTracks(_:), so onLayoutChanged never fires and fitWindowToTracks() never runs. The window keeps the panel's extra height and its raised minSize.height, and appliedExtraHeight is left stale until the next toggle.
Only opening the panel here gives the same result on first open, since showsTracks starts false. It also leaves the user's choice alone after a save:
// A saved edit with imports or transforms has no trim strip to go back to.
if isComposite { showsTracks = true }
Agreed. The reload after a save no longer closes the panel or skips the window resize: load() now only opens the tracks for a saved edit that needs them.
Code review
No issues found in 94ebfb3db3c30429cb3c9f245196aa55e0e60895. Checked for bugs and CLAUDE.md compliance.
LorcanChinnock
What
The multi-track timeline, keyframes, imports and annotations were already behind a button, off by default. But the editor remembered the last choice, so opening them once left them open for every later recording.
videoEditorShowsTrackssetting is gone, since nothing stores the choice any more.Nothing is removed. The README and landing page don't name the button. The video editor screenshots in
docs/media/(video-editor.png,video-timeline.png,video-captions.png) may show the old "Tracks" label, and I can't retake them here, so they need a fresh capture.Closes #899
Part of #900