Added host check on submit

This commit is contained in:
JHubi1 2024-06-05 20:08:08 +02:00
parent 924a3613f9
commit 00db49f3e8
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
1 changed files with 4 additions and 0 deletions

View File

@ -304,6 +304,10 @@ class _ScreenSettingsState extends State<ScreenSettings> {
controller: hostInputController, controller: hostInputController,
keyboardType: TextInputType.url, keyboardType: TextInputType.url,
readOnly: useHost, readOnly: useHost,
onSubmitted: (value) {
HapticFeedback.selectionClick();
checkHost();
},
decoration: InputDecoration( decoration: InputDecoration(
labelText: AppLocalizations.of(context)!.settingsHost, labelText: AppLocalizations.of(context)!.settingsHost,
hintText: "http://localhost:11434", hintText: "http://localhost:11434",