mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: backup restore failed
This commit is contained in:
@@ -31,7 +31,7 @@ class Backup {
|
||||
keys = (json['keys'] as List)
|
||||
.map((e) => PrivateKeyInfo.fromJson(e))
|
||||
.toList(),
|
||||
dockerHosts = json['dockerHosts'];
|
||||
dockerHosts = json['dockerHosts'] ?? {};
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'version': version,
|
||||
|
||||
@@ -12,4 +12,4 @@ class VirtualKey {
|
||||
{this.key, this.toggleable = false, this.icon, this.func});
|
||||
}
|
||||
|
||||
enum VirtualKeyFunc { toggleIME, backspace, copy, paste }
|
||||
enum VirtualKeyFunc { toggleIME, backspace, copy, paste, snippet }
|
||||
|
||||
Reference in New Issue
Block a user