mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-04-03 22:16:30 +00:00
20 lines
569 B
PowerShell
20 lines
569 B
PowerShell
# Shows the CLI last used settings from LastUsedSettings.json file, displays pending changes and prompts the user to apply them.
|
|
function ShowCLILastUsedSettings {
|
|
PrintHeader 'Custom Mode'
|
|
|
|
try {
|
|
LoadSettings -filePath $script:SavedSettingsFilePath -expectedVersion "1.0"
|
|
}
|
|
catch {
|
|
Write-Error "Failed to load settings from LastUsedSettings.json file: $_"
|
|
AwaitKeyToExit
|
|
}
|
|
|
|
if ($Silent) {
|
|
# Skip change summary and confirmation prompt
|
|
return
|
|
}
|
|
|
|
PrintPendingChanges
|
|
PrintHeader 'Custom Mode'
|
|
} |