add new server settings

This commit is contained in:
2024-02-06 17:38:49 +08:00
parent 2fab2f56d8
commit 4eb43cfbca
5 changed files with 36 additions and 2 deletions

View File

@@ -669,6 +669,24 @@ class _ServerSettingsPage extends State<ServerSettingsPage>
});
},
)),
_buildWithVecticalPadding(NumberFormField(
min: 1,
initialValue: _now.downloadTimeoutCheckInterval ??
_config!.downloadTimeoutCheckInterval,
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText: i18n.downloadTimeoutCheckInterval,
suffixText: i18n.millisecond,
helperText: i18n.downloadTimeoutCheckIntervalHelp,
helperMaxLines: 3,
),
onChanged: (s) {
setState(() {
_now.downloadTimeoutCheckInterval = s;
_changed = true;
});
},
)),
]));
}