Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix: simplify loadingFormats handling in format loading logic

Tonho085e097cb594
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index cdee8e12..01f0171a 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -282,9 +282,7 @@
const msg = typeof e === "string" ? e : e.message ?? "";
formatError = msg || $t("omnibox.formats_error");
} finally {
- if (gen === formatFetchGeneration) {
- loadingFormats = false;
- }
+ loadingFormats = false;
}
}
@@ -457,7 +455,7 @@
platform={omniState.info.platform}
bind:formats
bind:selectedFormatId
- loadingFormats
+ {loadingFormats}
{formatError}
onLoadFormats={loadFormats}
onSelectFormat={selectFormat}