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:
+3
-4
@@ -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' }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user