mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
fix: backup restore failed
This commit is contained in:
@@ -9,7 +9,7 @@ class Backup {
|
|||||||
final List<ServerPrivateInfo> spis;
|
final List<ServerPrivateInfo> spis;
|
||||||
final List<Snippet> snippets;
|
final List<Snippet> snippets;
|
||||||
final List<PrivateKeyInfo> keys;
|
final List<PrivateKeyInfo> keys;
|
||||||
final Map<String, String> dockerHosts;
|
final Map<String, dynamic> dockerHosts;
|
||||||
final Map<String, dynamic> settings;
|
final Map<String, dynamic> settings;
|
||||||
|
|
||||||
Backup({
|
Backup({
|
||||||
|
|||||||
@@ -176,7 +176,10 @@ class BackupPage extends StatelessWidget {
|
|||||||
_privateKey.put(s);
|
_privateKey.put(s);
|
||||||
}
|
}
|
||||||
for (final k in backup.dockerHosts.keys) {
|
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();
|
context.pop();
|
||||||
showRoundDialog(
|
showRoundDialog(
|
||||||
|
|||||||
Reference in New Issue
Block a user