reset direct dns when region change

This commit is contained in:
hiddify-com
2024-07-27 23:51:54 +02:00
parent c4f8ebeaf4
commit bdb69a603a
6 changed files with 35 additions and 26 deletions

View File

@@ -124,6 +124,7 @@ class IntroPage extends HookConsumerWidget with PresLogger {
'Timezone Region: ${regionLocale.region} Locale: ${regionLocale.locale}',
);
await ref.read(ConfigOptions.region.notifier).update(regionLocale.region);
await ref.watch(ConfigOptions.directDnsAddress.notifier).reset();
await ref.read(localePreferencesProvider.notifier).changeLocale(regionLocale.locale);
return;
} catch (e) {