This commit is contained in:
rustdesk 2024-09-13 09:21:50 +08:00
parent 9f9a22ec63
commit d65d3b7326
2 changed files with 2 additions and 1 deletions

View File

@ -3154,6 +3154,7 @@ class _ReconnectCountDownButtonState extends State<_ReconnectCountDownButton> {
importConfig(List<TextEditingController>? controllers, List<RxString>? errMsgs,
String? text) {
text = text?.trim();
if (text != null && text.isNotEmpty) {
try {
final sc = ServerConfig.decode(text);

View File

@ -184,7 +184,7 @@ List<Widget> ServerConfigImportExportWidgets(
) {
import() {
Clipboard.getData(Clipboard.kTextPlain).then((value) {
importConfig(controllers, errMsgs, value?.text.trim());
importConfig(controllers, errMsgs, value?.text);
});
}