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

@@ -146,6 +146,7 @@ class ConfigOptionsPage extends HookConsumerWidget {
choices: Region.values,
title: t.settings.general.region,
presentChoice: (value) => value.present(t),
onChanged: (val) => ref.watch(ConfigOptions.directDnsAddress.notifier).reset(),
),
SwitchListTile(
title: Text(experimental(t.config.blockAds)),