mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-07-16 00:40:39 +00:00
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:
@@ -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()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user