Merge pull request #2648 from Heap-Hop/master

fix mobile api server validation bug
This commit is contained in:
RustDesk 2022-12-26 10:58:20 +08:00 committed by GitHub
commit f270d3ab85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;