add proper persistence expirations and collapse the connection section by default
This commit is contained in:
@@ -34,6 +34,7 @@ class BackupDirectoryUri extends _$BackupDirectoryUri {
|
||||
persist(
|
||||
ref.watch(riverpodDatabaseStorageProvider),
|
||||
key: 'BackupDirectoryUri',
|
||||
options: const StorageOptions(cacheTime: StorageCacheTime.unsafe_forever),
|
||||
encode: (state) => state?.toString() ?? '',
|
||||
decode: (encoded) => encoded.isEmpty ? null : Uri.parse(encoded),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user