Deleted lastrun.json (#4714)

* Update Invoke-WPFtweaksbutton.ps1

* Update main.ps1

* Update tweaks.json

* Update tweaks.json

* Update tweaks.json
This commit is contained in:
Gabi
2026-06-22 12:46:38 -07:00
committed by GitHub
parent ae4c787545
commit 47f06e34e3
3 changed files with 3 additions and 28 deletions

View File

@@ -368,15 +368,6 @@ $sync["Form"].Add_ContentRendered({
Invoke-WPFTab "WPFTab1BT" # Default to install tab
}
if (-not $Config -and (Test-Path "$winutildir\lastrun.json")) {
$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"
}
}
$sync["Form"].Focus()
})