Add the Studio 2 bench and restore saved prompt sections

This commit is contained in:
Towsty
2026-09-10 20:56:37 -05:00
parent 70c17695e4
commit 8c464f283d
4 changed files with 123 additions and 0 deletions
+10
View File
@@ -1074,6 +1074,11 @@ async function onMoveFocused(event: Event) {
}
function openInStudio(entry: LibraryEntry) {
const part = focusedParts.value.find(part => part.id === focusedPartId.value) || focusedParts.value[0]
if ((part as any)?.studio2) {
navigateTo({ path: '/studio-2', query: { [entry.kind === 'clip' ? 'clip' : 'still']: part!.id } })
return
}
if (entry.kind === 'clip' && entry.group) {
navigateTo({ path: '/', query: { clip: focusedPartId.value || entry.group.head.id } })
return
@@ -1088,6 +1093,11 @@ function openInStudio(entry: LibraryEntry) {
}
function useInStudio(entry: LibraryEntry) {
const part = focusedParts.value.find(part => part.id === focusedPartId.value) || focusedParts.value[0]
if ((part as any)?.studio2) {
navigateTo({ path: '/studio-2', query: { [entry.kind === 'clip' ? 'clip' : 'still']: part!.id, use: '1' } })
return
}
if (entry.kind === 'clip' && entry.group) {
navigateTo({ path: '/', query: { clip: focusedPartId.value || entry.group.head.id, use: '1' } })
return