Stop library Open/click from switching Video and Image tabs.

Previewing a still or clip only updates the output pane; Use as input stays on the current workspace instead of forcing Image for image stills.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-04 13:26:05 -05:00
co-authored by Cursor
parent 5ffb65706f
commit 1155edc3bd
2 changed files with 14 additions and 11 deletions
+3 -4
View File
@@ -1054,16 +1054,15 @@ function openInStudio(entry: LibraryEntry) {
function useInStudio(entry: LibraryEntry) {
if (entry.kind === 'clip' && entry.group) {
navigateTo({ path: '/', query: { clip: focusedPartId.value || entry.group.head.id, use: '1', studio: 'video' } })
navigateTo({ path: '/', query: { clip: focusedPartId.value || entry.group.head.id, use: '1' } })
return
}
if (entry.stillGroup) {
const stillId = focusedPartId.value || entry.stillGroup.head.id
const still = stills.value.find(item => item.id === stillId) || entry.stillGroup.head
const imageStill = Boolean(still?.settings?.kind === 'imagev2' || still?.settings?.kind === 'image' || still?.settings?.mode)
// Do not force Video/Image — studio stays on whatever tab the user left it on.
navigateTo({
path: '/',
query: { still: stillId, use: '1', studio: imageStill ? 'image' : 'video' }
query: { still: stillId, use: '1' }
})
}
}