diff --git a/pages/index.vue b/pages/index.vue index 360e87b..d6c09fb 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -918,7 +918,16 @@ @@ -1037,7 +1055,16 @@
@@ -2529,6 +2556,17 @@ const samplerName = ref('res_multistep') const scheduler = ref('simple') const duration = ref(5) const seedInput = ref('random') +const inputSeed = ref('') + +function rememberInputSeed(raw: unknown) { + const value = Number(raw) + inputSeed.value = Number.isFinite(value) ? String(Math.round(value)) : '' +} + +function applyInputSeed() { + if (!inputSeed.value) return + seedInput.value = inputSeed.value +} const withSound = ref(true) const hideThumbnail = ref(false) const hideInputPreview = ref(false) @@ -5646,7 +5684,7 @@ async function rerun(item: LibraryClip, collection = false) { clipName.value = restoreAll ? (familyBaseName(collectionTitle({ head: target, parts })) || target.name || '') : (target.name || '') - seedInput.value = String(target.seed) + rememberInputSeed(target.seed) restoreAdvanced(target) duration.value = clipGenerateDuration(target) hideThumbnail.value = showPrivacyToggles.value && target.hideThumbnail @@ -5988,6 +6026,7 @@ function applyStillSettings(still: LibraryStill) { const settings = still.settings folderId.value = still.folderId browseFolderId.value = still.folderId + rememberInputSeed(settings?.seed) applyPromptRestore(still.prompt || '', still) if (dest === 'imagev2') { studioMode.value = 'editv2' @@ -6013,7 +6052,6 @@ function applyStillSettings(still: LibraryStill) { v2Height.value = size.height } if (mode === 'compose' && settings.task) v2Task.value = settings.task - if (settings.seed != null) seedInput.value = String(Math.round(settings.seed)) imageV2LoraStack.value = mergeLegacyImageV2Loras( settings.loraStack?.length || settings.loraName ? readLoraStack(settings) : imageV2LoraStack.value, { @@ -6040,7 +6078,6 @@ function applyStillSettings(still: LibraryStill) { if (settings.loraStack?.length || settings.loraName) { imageLoraStack.value = filterLoraStackForStudio(readLoraStack(settings), ltxEnabled.value) } - if (settings.seed != null) seedInput.value = String(Math.round(settings.seed)) aspect.value = parseImageAspect(settings.aspect) }