- {
- 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')}
+
)}