DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
fix(profile): 修复档案与核心切换的 CheckBox 点击无效
Qoderf8f4e8279cd7
diff --git a/src/ui/config/core.tsx b/src/ui/config/core.tsxindex 5a1c48eb..ee88a740 100644--- a/src/ui/config/core.tsx+++ b/src/ui/config/core.tsx@@ -369,6 +369,7 @@ export function ConfigCore() {<CheckboxisSelected={core.active}isDisabled={busy}+ onChange={() => onActivate(core)}aria-label={core.version || core.id}className="shrink-0">diff --git a/src/ui/config/profile.tsx b/src/ui/config/profile.tsxindex 38c25387..31839af3 100644--- a/src/ui/config/profile.tsx+++ b/src/ui/config/profile.tsx@@ -272,6 +272,7 @@ export function ConfigProfile() {<CheckboxisSelected={profile.active}isDisabled={busy}+ onChange={() => onActivate(profile.id)}aria-label={profile.name}className="shrink-0">@@ -303,21 +304,20 @@ export function ConfigProfile() {>{t('profiles.clone')}</Chip>- <If cond={!profile.default}>- <Chip- className={`rounded-md${busy ? ' cursor-not-allowed opacity-50' : ' cursor-pointer'}`}- variant="primary"- color="danger"- size="sm"- onClick={(event) => {- event.stopPropagation()- if (!busy)- onRemove(profile.id)- }}- >- {t('profiles.remove')}- </Chip>- </If>+ <Chip+ className={`rounded-md${profile.default || busy ? ' cursor-not-allowed opacity-50' : ' cursor-pointer'}`}+ variant={profile.default ? 'soft' : 'primary'}+ color={profile.default ? 'default' : 'danger'}+ size="sm"+ onClick={(event) => {+ event.stopPropagation()+ if (profile.default || busy)+ return+ onRemove(profile.id)+ }}+ >+ {t('profiles.remove')}+ </Chip></>)}/>