reset direct dns when region change
This commit is contained in:
@@ -84,8 +84,11 @@ class RegionPrefTile extends HookConsumerWidget {
|
||||
);
|
||||
if (selectedRegion != null) {
|
||||
// await ref.read(Preferences.region.notifier).update(selectedRegion);
|
||||
|
||||
await ref.watch(ConfigOptions.region.notifier).update(selectedRegion);
|
||||
|
||||
await ref.watch(ConfigOptions.directDnsAddress.notifier).reset();
|
||||
|
||||
// await ref.read(configOptionNotifierProvider.notifier).build();
|
||||
// await ref.watch(ConfigOptions.resolveDestination.notifier).update(!ref.watch(ConfigOptions.resolveDestination.notifier).raw());
|
||||
//for reload config
|
||||
|
||||
Reference in New Issue
Block a user