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
feat: add start with Windows setting to general settings for Windows users
Tonho0a5c7316d2df
diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelteindex 4c110963..6d7f7458 100644--- a/src/routes/settings/+page.svelte+++ b/src/routes/settings/+page.svelte@@ -16,6 +16,7 @@let settings = $derived(getSettings());let updateInfo = $derived(getUpdateInfo());+ let isWindows = typeof navigator !== "undefined" && navigator.userAgent.includes("Windows");let resetting = $state(false);let updating = $state(false);let deps = $state<DependencyStatus[]>([]);@@ -177,6 +178,30 @@</div>{/if}+ {#if isWindows}+ <section class="section">+ <h5 class="section-title">{$t('settings.general.title')}</h5>+ <div class="card">+ <div class="setting-row">+ <div class="setting-col">+ <span class="setting-label">{$t('settings.general.start_with_windows')}</span>+ <span class="setting-path">{$t('settings.general.start_with_windows_desc')}</span>+ </div>+ <button+ class="toggle"+ class:on={settings.start_with_windows}+ onclick={() => updateSettings({ start_with_windows: !settings!.start_with_windows })}+ role="switch"+ aria-checked={settings.start_with_windows}+ aria-label={$t('settings.general.start_with_windows')}+ >+ <span class="toggle-knob"></span>+ </button>+ </div>+ </div>+ </section>+ {/if}+<section class="section"><h5 class="section-title">{$t('settings.appearance.title')}</h5><div class="card">