fix mobile api server validation bug

This commit is contained in:
csf 2022-12-26 10:12:01 +09:00
parent 8c86a82422
commit 9c07a0f2d8

View File

@ -264,7 +264,6 @@ void showServerSettingsWithValue(
if (relayServerMsg != null) return false;
}
if (apiCtrl.text != oldCfg.apiServer) {
apiServerMsg = await validateAsync(apiCtrl.text);
if (apiServerMsg != null) return false;
}
return true;
@ -355,6 +354,7 @@ void showServerSettingsWithValue(
bind.mainSetOption(key: "api-server", value: apiCtrl.text);
}
close();
showToast(translate('Successful'));
}
setState(() {
isInProgress = false;