From 95c7ba719234c00c5bd8915093ff77d9670c926d Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Thu, 28 May 2026 15:03:13 +0200 Subject: [PATCH] Fix upload dialog: search box button always searches Previously when no IGDB matches were found, the button next to the search box changed from 'Search' to 'Upload' after the first search. Since the text is editable and users may want to refine their query, this button should always trigger a search. Upload is still available via: - The 'Upload anyway as "..."' button (shown after failed search) - The 'Use filename: ...' button at the bottom --- frontend/src/pages/Library.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Library.svelte b/frontend/src/pages/Library.svelte index 159f9bd..0ea0155 100644 --- a/frontend/src/pages/Library.svelte +++ b/frontend/src/pages/Library.svelte @@ -194,10 +194,10 @@ placeholder="Search IGDB..." bind:value={pendingTitle} disabled={uploading || searching} - onkeydown={(e) => e.key === "Enter" && (manualSearched ? doUpload(pendingTitle.trim()) : handleManualSearch())} + onkeydown={(e) => e.key === "Enter" && handleManualSearch()} /> -