Merge pull request #646 from ericszimmermann/ez_backup-restore

Backup and Restore functionality
This commit is contained in:
zjs81 authored and GitHub committed 2026-11-09 07:08:40 -07:00
commit 47f2293a5c
42 files changed
+7629 -251

No files matched your search

+8
View File
@@ -110,6 +110,7 @@ class AppSettings {
final bool mapShowChatNodes;
final bool mapShowOtherNodes;
final bool mapShowOnlineLinks;
final bool mapUseOnlineMapForPaths;
final bool mapShowOverlaps;
final double mapTimeFilterHours; // 0 = all time
final bool mapKeyPrefixEnabled;
@@ -263,6 +264,7 @@ class AppSettings {
this.mapShowChatNodes = true,
this.mapShowOtherNodes = true,
this.mapShowOnlineLinks = true,
this.mapUseOnlineMapForPaths = false,
this.mapShowOverlaps = false,
this.mapTimeFilterHours = 168,
this.mapKeyPrefixEnabled = false,
@@ -359,6 +361,7 @@ class AppSettings {
'map_show_chat_nodes': mapShowChatNodes,
'map_show_other_nodes': mapShowOtherNodes,
'map_show_online_links': mapShowOnlineLinks,
'map_use_online_map_for_paths': mapUseOnlineMapForPaths,
'map_show_overlaps': mapShowOverlaps,
'map_time_filter_hours': mapTimeFilterHours,
'map_key_prefix_enabled': mapKeyPrefixEnabled,
@@ -492,6 +495,8 @@ class AppSettings {
mapShowChatNodes: json['map_show_chat_nodes'] as bool? ?? true,
mapShowOtherNodes: json['map_show_other_nodes'] as bool? ?? true,
mapShowOnlineLinks: json['map_show_online_links'] as bool? ?? true,
mapUseOnlineMapForPaths:
json['map_use_online_map_for_paths'] as bool? ?? false,
mapShowOverlaps: json['map_show_overlaps'] as bool? ?? false,
mapTimeFilterHours:
(json['map_time_filter_hours'] as num?)?.toDouble() ?? 168,
@@ -666,6 +671,7 @@ class AppSettings {
bool? mapShowChatNodes,
bool? mapShowOtherNodes,
bool? mapShowOnlineLinks,
bool? mapUseOnlineMapForPaths,
bool? mapShowOverlaps,
double? mapTimeFilterHours,
bool? mapKeyPrefixEnabled,
@@ -746,6 +752,8 @@ class AppSettings {
mapShowChatNodes: mapShowChatNodes ?? this.mapShowChatNodes,
mapShowOtherNodes: mapShowOtherNodes ?? this.mapShowOtherNodes,
mapShowOnlineLinks: mapShowOnlineLinks ?? this.mapShowOnlineLinks,
mapUseOnlineMapForPaths:
mapUseOnlineMapForPaths ?? this.mapUseOnlineMapForPaths,
mapShowOverlaps: mapShowOverlaps ?? this.mapShowOverlaps,
mapTimeFilterHours: mapTimeFilterHours ?? this.mapTimeFilterHours,
mapKeyPrefixEnabled: mapKeyPrefixEnabled ?? this.mapKeyPrefixEnabled,
+13
View File
@@ -481,6 +481,19 @@ class ImageCodecModelSpec {
maybeAssetFor(ImageCodecAssetRole.entropyGraph) != null &&
maybeAssetFor(ImageCodecAssetRole.entropyDecodeGraph) != null &&
maybeAssetFor(ImageCodecAssetRole.cdfTables) != null;
bool hasCompleteInstalledRecord(
Iterable<ImageCodecModelRecord> downloadedModels,
) => downloadedModels.any(
(record) =>
record.id == id &&
record.bundleVersion >= kImageCodecBundleVersion &&
assets.every(
(asset) =>
record.assetFileNames.contains(asset.fileName) &&
record.assetRoles[asset.fileName] == asset.role,
),
);
}
/// The set of on-disk paths a codec session needs, replacing the bare