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:
@@ -9,7 +9,7 @@ class Backup {
|
||||
final List<ServerPrivateInfo> spis;
|
||||
final List<Snippet> snippets;
|
||||
final List<PrivateKeyInfo> keys;
|
||||
final Map<String, String> dockerHosts;
|
||||
final Map<String, dynamic> dockerHosts;
|
||||
final Map<String, dynamic> settings;
|
||||
|
||||
Backup({
|
||||
|
||||
@@ -176,7 +176,10 @@ class BackupPage extends StatelessWidget {
|
||||
_privateKey.put(s);
|
||||
}
|
||||
for (final k in backup.dockerHosts.keys) {
|
||||
_dockerHosts.put(k, backup.dockerHosts[k]!);
|
||||
final val = backup.dockerHosts[k];
|
||||
if (val != null && val is String && val.isNotEmpty) {
|
||||
_dockerHosts.put(k, val);
|
||||
}
|
||||
}
|
||||
context.pop();
|
||||
showRoundDialog(
|
||||
|
||||
Reference in New Issue
Block a user