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

+2 -2
View File
@@ -832,7 +832,7 @@ class AppSettingsScreen extends StatelessWidget {
) {
final textTheme = Theme.of(context).textTheme;
final scheme = Theme.of(context).colorScheme;
final alreadyHave = codec.availableModels.any((m) => m.id == spec.id);
final alreadyHave = spec.hasCompleteInstalledRecord(codec.availableModels);
// downloadPresetModel throws StateError on a placeholder URL, deliberately,
// so the button must not be offerable until the weights are published.
final blocked = spec.urlsArePlaceholders;
@@ -891,7 +891,7 @@ class AppSettingsScreen extends StatelessWidget {
final l10n = context.l10n;
try {
await codec.downloadPresetModel(spec);
} on Exception catch (error) {
} catch (error) {
messenger.showSnackBar(
SnackBar(
content: Text(l10n.imageMessages_downloadFailedWithError('$error')),