mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-18 07:43:01 +08:00
Merge pull request #2648 from Heap-Hop/master
fix mobile api server validation bug
This commit is contained in:
commit
f270d3ab85
@ -264,7 +264,6 @@ void showServerSettingsWithValue(
|
|||||||
if (relayServerMsg != null) return false;
|
if (relayServerMsg != null) return false;
|
||||||
}
|
}
|
||||||
if (apiCtrl.text != oldCfg.apiServer) {
|
if (apiCtrl.text != oldCfg.apiServer) {
|
||||||
apiServerMsg = await validateAsync(apiCtrl.text);
|
|
||||||
if (apiServerMsg != null) return false;
|
if (apiServerMsg != null) return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -355,6 +354,7 @@ void showServerSettingsWithValue(
|
|||||||
bind.mainSetOption(key: "api-server", value: apiCtrl.text);
|
bind.mainSetOption(key: "api-server", value: apiCtrl.text);
|
||||||
}
|
}
|
||||||
close();
|
close();
|
||||||
|
showToast(translate('Successful'));
|
||||||
}
|
}
|
||||||
setState(() {
|
setState(() {
|
||||||
isInProgress = false;
|
isInProgress = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user