fix: preserve Scene shot labels for double-click rename

This commit is contained in:
Sameh Khamis committed 2026-09-13 03:56:23 -07:00
1 parent 9b6d34cb8a
commit 1f76f81484
6 files changed
+65 -3

No files matched your search

+9 -1
View File
@@ -3,6 +3,7 @@ import {
sceneElements,
renderSceneOptions,
renderSceneShots,
presentSceneSelection,
presentSceneButtons,
presentSceneProgress,
presentSceneRuntime,
@@ -112,7 +113,14 @@ export class SceneControls {
renderSceneShots(this.elements.shots, this.read(), {
listen: (element, type, callback) =>
this.listen(element, type, callback, this.rowRemovers),
select: (id) => this.run('selectShot', id),
select: (id) => {
this.run('selectShot', id);
if (!this.destroyed)
presentSceneSelection(
this.elements.shots,
this.read().selectedShotId,
);
},
rename: (sceneId, shotId, title) =>
this.run('renameShot', sceneId, shotId, title),
load: (sceneId, shotId) => this.run('load', sceneId, shotId),