mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-21 23:26:42 +00:00
21 lines
597 B
PowerShell
21 lines
597 B
PowerShell
# Shows the CLI last used settings from LastUsedSettings.json file, displays pending changes and prompts the user to apply them.
|
|
function Show-CliLastUsedSettings {
|
|
Write-CliHeader 'Custom Mode'
|
|
|
|
try {
|
|
Import-Settings -filePath $script:SavedSettingsFilePath -expectedVersion "1.0"
|
|
}
|
|
catch {
|
|
Write-Error "Failed to load settings from LastUsedSettings.json file: $_"
|
|
Wait-ForKeyPress -ExitCode 1
|
|
}
|
|
|
|
if ($Silent) {
|
|
# Skip change summary and confirmation prompt
|
|
return
|
|
}
|
|
|
|
Write-PendingChanges
|
|
Write-CliHeader 'Custom Mode'
|
|
}
|