fix ci
This commit is contained in:
parent
9f9a22ec63
commit
d65d3b7326
@ -3154,6 +3154,7 @@ class _ReconnectCountDownButtonState extends State<_ReconnectCountDownButton> {
|
|||||||
|
|
||||||
importConfig(List<TextEditingController>? controllers, List<RxString>? errMsgs,
|
importConfig(List<TextEditingController>? controllers, List<RxString>? errMsgs,
|
||||||
String? text) {
|
String? text) {
|
||||||
|
text = text?.trim();
|
||||||
if (text != null && text.isNotEmpty) {
|
if (text != null && text.isNotEmpty) {
|
||||||
try {
|
try {
|
||||||
final sc = ServerConfig.decode(text);
|
final sc = ServerConfig.decode(text);
|
||||||
|
@ -184,7 +184,7 @@ List<Widget> ServerConfigImportExportWidgets(
|
|||||||
) {
|
) {
|
||||||
import() {
|
import() {
|
||||||
Clipboard.getData(Clipboard.kTextPlain).then((value) {
|
Clipboard.getData(Clipboard.kTextPlain).then((value) {
|
||||||
importConfig(controllers, errMsgs, value?.text.trim());
|
importConfig(controllers, errMsgs, value?.text);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user