#73 fix & opt.

- fix: reorder list default drag
- opt.: android home widget grey text
This commit is contained in:
lollipopkit
2023-07-20 18:26:17 +08:00
parent 7f8fbfead3
commit 5a5e2fd1d1
16 changed files with 41 additions and 37 deletions

View File

@@ -29,12 +29,12 @@ class ServerPrivateInfo {
required this.pwd,
this.pubKeyId,
this.tags,
}) : id = '$user@$ip:$port';
}) : id = '$name<$user@$ip:$port>';
ServerPrivateInfo.fromJson(Map<String, dynamic> json) {
name = json["name"].toString();
ip = json["ip"].toString();
port = json["port"].toInt();
port = int.tryParse(json["port"]) ?? 22;
user = json["user"].toString();
pwd = json["authorization"].toString();
pubKeyId = json["pubKeyId"]?.toString();
@@ -55,6 +55,6 @@ class ServerPrivateInfo {
}
bool shouldReconnect(ServerPrivateInfo old) {
return id != id || pwd != old.pwd || pubKeyId != old.pubKeyId;
return id != old.id || pwd != old.pwd || pubKeyId != old.pubKeyId;
}
}