mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-18 07:43:01 +08:00
fix mobile api server validation bug
This commit is contained in:
parent
8c86a82422
commit
9c07a0f2d8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user