Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
fix(home): keep URL/Batch tab bar mounted and reset momentary modes
Antonio Leandroee7d0f1f0b0c
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelteindex 0f167023..bf50a489 100644--- a/src/routes/+page.svelte+++ b/src/routes/+page.svelte@@ -819,12 +819,20 @@}function handleHomeModeChange(mode: HomeInputMode) {+ // batch/torrent/p2p are momentary actions, not persistent input modes:+ // return to "url" so the tab bar never strands on an empty state when+ // the picker/dialog is cancelledif (mode === "p2p") {showP2pSendDialog = true;+ homeInputMode = "url";} else if (mode === "torrent") {- void openTorrentFile();+ void openTorrentFile().finally(() => {+ homeInputMode = "url";+ });} else if (mode === "batch") {- void openBatchFile();+ void openBatchFile().finally(() => {+ homeInputMode = "url";+ });}}@@ -936,7 +944,7 @@</div>{/if}- {#if showOmnibox && homeInputMode === "url"}+ {#if showOmnibox}<HomeUrlBar bind:url bind:mode={homeInputMode} onInput={handleInput} onModeChange={handleHomeModeChange} />{/if}