Modify DNS ComboBox

- Replaced "Default" with "Custom"
- Set Default Dropdown Content to applied option or "Custom" if not in the list.
- saves custom IPs on multiple adapters
> If user sets DNS to Cloudflare and runs the tweaks but wants to undo it before he closed the script he can select "custom" and run it to apply the saved addresses
This commit is contained in:
MyDrift
2024-06-07 01:01:48 +02:00
parent 3dca1ee43e
commit 706f73923a
5 changed files with 95 additions and 9 deletions

View File

@ -434,6 +434,8 @@ $sync["CheckboxFilter"].Add_TextChanged({
$label.Visibility = "Collapsed"}
})
Get-WinUtilDNS
# Define event handler for button click
$sync["SettingsButton"].Add_Click({
Write-Debug "SettingsButton clicked"