diff --git a/src/components/setting-verge.tsx b/src/components/setting-verge.tsx index 496b99b00d935de8fda628748b8bfd41a839c689..3a15bf95ba20c10a315cf11a0dc9807c131d7ff5 100644 --- a/src/components/setting-verge.tsx +++ b/src/components/setting-verge.tsx @@ -26,7 +26,7 @@ const SettingVerge = ({ onError }: Props) => { const { theme_mode: mode = "light", theme_blur: blur = false, - enable_self_startup: startup = false, + enable_auto_launch: startup = false, enable_system_proxy: proxy = false, } = vergeConfig ?? {}; @@ -72,14 +72,14 @@ const SettingVerge = ({ onError }: Props) => { </SettingItem> <SettingItem> - <ListItemText primary="Self Startup" /> + <ListItemText primary="Auto Launch" /> <GuardState value={startup} valueProps="checked" onCatch={onError} onFormat={onSwitchFormat} - onChange={(e) => onChangeData({ enable_self_startup: e })} - onGuard={(e) => patchVergeConfig({ enable_self_startup: e })} + onChange={(e) => onChangeData({ enable_auto_launch: e })} + onGuard={(e) => patchVergeConfig({ enable_auto_launch: e })} > <Switch edge="end" /> </GuardState> diff --git a/src/services/types.ts b/src/services/types.ts index cc0e13b9032856da0e853bb145aba690e5e6e90a..e45ee0019bc599fe678d2abf9deea337155b41ba 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -111,7 +111,7 @@ export namespace CmdType { export interface VergeConfig { theme_mode?: "light" | "dark"; theme_blur?: boolean; - enable_self_startup?: boolean; + enable_auto_launch?: boolean; enable_system_proxy?: boolean; } }