backup: before proxies page modernization
This commit is contained in:
@@ -113,3 +113,20 @@ class PerAppProxyList extends _$PerAppProxyList {
|
||||
return _exclude.write(value);
|
||||
}
|
||||
}
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class ExcludedDomainsList extends _$ExcludedDomainsList {
|
||||
late final _pref = PreferencesEntry(
|
||||
preferences: ref.watch(sharedPreferencesProvider).requireValue,
|
||||
key: "excluded_domains_list",
|
||||
defaultValue: <String>[],
|
||||
);
|
||||
|
||||
@override
|
||||
List<String> build() => _pref.read();
|
||||
|
||||
Future<void> update(List<String> value) {
|
||||
state = value;
|
||||
return _pref.write(value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user