fix: retain completed scene status in current snapshots

This commit is contained in:
Sameh Khamis committed 2026-09-13 05:43:41 -07:00
1 parent e0652b19f2
commit 3164405108
5 files changed
+6 -5

No files matched your search

+2 -3
View File
@@ -100,9 +100,8 @@ export class SceneControls {
this.setPlaybackActive(state.playbackActive);
if (initial || type === 'playback-keyboard')
this.setPlaybackKeyboardEnabled(state.keyboardEnabled);
if (type === 'project-exported') this.updateStatus('Project exported');
if (type === 'shot-loaded')
this.updateStatus(`Loaded: ${change.sceneTitle} / ${change.shot.title}`);
if (type === 'project-exported') this.updateStatus(state.status);
if (type === 'shot-loaded') this.updateStatus(state.status);
if (type === 'run-event' && change.event === 'shot_start')
this.setButtons(state.running);
}
+1
View File
@@ -374,6 +374,7 @@ test('Scene controls consume current state, preserve rows on progress, and unsub
f.state.progress = 0.5;
channel.publish({ type: 'progress-changed' });
assert.equal(f.elements.shots.children[0], row);
f.state.status = 'Project exported';
channel.publish({ type: 'project-exported' });
assert.equal(f.elements.status.textContent, 'Project exported');
owner.destroy();