diff --git a/src/renderer/src/components/settings/general-config.tsx b/src/renderer/src/components/settings/general-config.tsx index 9ac81de..0a6b106 100644 --- a/src/renderer/src/components/settings/general-config.tsx +++ b/src/renderer/src/components/settings/general-config.tsx @@ -164,19 +164,25 @@ const GeneralConfig: React.FC = () => { {autoQuitWithoutCore && ( - { - let num = parseInt(v) - if (isNaN(num)) num = 5 - if (num < 5) num = 5 - await patchAppConfig({ autoQuitWithoutCoreDelay: num }) - }} - /> +
+ { + let num = parseInt(v) + await patchAppConfig({ autoQuitWithoutCoreDelay: num }) + }} + onBlur={async (e) => { + let num = parseInt(e.target.value) + if (isNaN(num)) num = 5 + if (num < 5) num = 5 + await patchAppConfig({ autoQuitWithoutCoreDelay: num }) + }} + /> + {t('common.seconds')} +
)}