feat(setttings): support auto launch config (#415)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
Haze
2026-03-11 18:41:18 +08:00
committed by GitHub
Unverified
parent baa551b30c
commit 53a51642ce
14 changed files with 275 additions and 7 deletions

View File

@@ -53,6 +53,8 @@ export function Settings() {
setTheme,
language,
setLanguage,
launchAtStartup,
setLaunchAtStartup,
gatewayAutoStart,
setGatewayAutoStart,
proxyEnabled,
@@ -435,6 +437,18 @@ export function Settings() {
))}
</div>
</div>
<div className="flex items-center justify-between">
<div>
<Label className="text-[15px] font-medium text-foreground/80">{t('appearance.launchAtStartup')}</Label>
<p className="text-[13px] text-muted-foreground mt-1">
{t('appearance.launchAtStartupDesc')}
</p>
</div>
<Switch
checked={launchAtStartup}
onCheckedChange={setLaunchAtStartup}
/>
</div>
</div>
</div>