mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
#73 fix & opt.
- fix: reorder list default drag - opt.: android home widget grey text
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 379;
|
||||
static const int build = 380;
|
||||
static const String engine = "3.10.6";
|
||||
static const String buildAt = "2023-07-19 19:18:31.520465";
|
||||
static const int modifications = 7;
|
||||
static const String buildAt = "2023-07-20 18:08:32.806339";
|
||||
static const int modifications = 14;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user