Compare commits

...

2 Commits

Author SHA1 Message Date
Vyas Devgna e4d305284b feat: detect reverted tweaks on startup (#4582)
Co-authored-by: vyas-devgna <vyas-devgna@users.noreply.github.com>
2026-06-04 15:28:37 -05:00
Gabi 78593cc58d Fixed irfanview's and openvpn's foss selection (#4546)
* Fixed irfanview's foss selection

* Update applications.json

* Update applications.json
2026-06-04 13:42:08 -05:00
3 changed files with 16 additions and 3 deletions
+4 -3
View File
@@ -545,7 +545,8 @@
"content": "IrfanView", "content": "IrfanView",
"description": "IrfanView is a lightweight, fast, and free image viewer and editor. Supports multiple formats, batch processing, and powerful plugins.", "description": "IrfanView is a lightweight, fast, and free image viewer and editor. Supports multiple formats, batch processing, and powerful plugins.",
"link": "https://irfanview.com/", "link": "https://irfanview.com/",
"winget": "IrfanSkiljan.IrfanView" "winget": "IrfanSkiljan.IrfanView",
"foss": false
}, },
"itch": { "itch": {
"category": "Games", "category": "Games",
@@ -929,10 +930,10 @@
"category": "Pro Tools", "category": "Pro Tools",
"choco": "openvpn-connect", "choco": "openvpn-connect",
"content": "OpenVPN Connect", "content": "OpenVPN Connect",
"description": "OpenVPN Connect is an open-source VPN client that allows you to connect securely to a VPN server. It provides a secure and encrypted connection for protecting your online privacy.", "description": "OpenVPN Connect is an VPN client that allows you to connect securely to a VPN server. It provides a secure and encrypted connection for protecting your online privacy.",
"link": "https://openvpn.net/", "link": "https://openvpn.net/",
"winget": "OpenVPNTechnologies.OpenVPNConnect", "winget": "OpenVPNTechnologies.OpenVPNConnect",
"foss": true "foss": false
}, },
"OVirtualBox": { "OVirtualBox": {
"category": "Utilities", "category": "Utilities",
@@ -82,5 +82,6 @@ function Invoke-WPFtweaksbutton {
Write-Host "=================================" Write-Host "================================="
Write-Host "-- Tweaks are Finished ---" Write-Host "-- Tweaks are Finished ---"
Write-Host "=================================" Write-Host "================================="
@($tweaks | Where-Object { $sync.configs.tweaks.$_.registry -or $sync.configs.tweaks.$_.service }) | ConvertTo-Json | Out-File "$env:LocalAppData\winutil\lastrun.json" -Force
} }
} }
+11
View File
@@ -400,6 +400,17 @@ $sync["Form"].Add_ContentRendered({
Invoke-WPFTab "WPFTab1BT" # Default to install tab Invoke-WPFTab "WPFTab1BT" # Default to install tab
} }
if (-not $PARAM_CONFIG -and (Test-Path "$winutildir\lastrun.json")) {
try {
$drifted = @(Get-Content "$winutildir\lastrun.json" | ConvertFrom-Json | Where-Object { $_ -notin (Invoke-WinUtilCurrentSystem -CheckBox "tweaks") })
if ($drifted.Count -gt 0 -and [System.Windows.MessageBox]::Show("$($drifted.Count) tweak(s) were reverted since last run. Re-select them?", "Winutil", "YesNo", "Question") -eq "Yes") {
Update-WinUtilSelections -flatJson $drifted
Reset-WPFCheckBoxes -doToggles $false
Invoke-WPFTab "WPFTab2BT"
}
} catch {}
}
$sync["Form"].Focus() $sync["Form"].Focus()
if ($PARAM_CONFIG -and -not [string]::IsNullOrWhiteSpace($PARAM_CONFIG)) { if ($PARAM_CONFIG -and -not [string]::IsNullOrWhiteSpace($PARAM_CONFIG)) {