Add new server settings

This commit is contained in:
2024-02-17 21:47:24 +08:00
parent 7cec3fd320
commit f9e920cc57
5 changed files with 32 additions and 2 deletions

View File

@@ -692,6 +692,22 @@ class _ServerSettingsPage extends State<ServerSettingsPage>
});
},
)),
_buildWithVecticalPadding(NumberFormField(
min: 1,
initialValue:
_now.ehMetadataCacheTime ?? _config!.ehMetadataCacheTime,
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText: i18n.ehMetadataCacheTime,
suffixText: i18n.hour,
),
onChanged: (s) {
setState(() {
_now.ehMetadataCacheTime = s;
_changed = true;
});
},
)),
]));
}