mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-23 16:12:08 +00:00
Add comprehensive test suite, fix minor issues, rename function and file names to match approved verbs (#708)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Shows the backup-restore dialog and performs the selected restore.
|
||||
#>
|
||||
function Show-RestoreBackupWindow {
|
||||
param(
|
||||
[System.Windows.Window]$Owner = $null
|
||||
@@ -38,7 +42,7 @@ function Show-RestoreBackupWindow {
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif ($dialogResult.Result -eq 'RestoreStartMenu') {
|
||||
elseif ($dialogResult.Result -eq 'Restore-StartMenu') {
|
||||
$scope = $dialogResult.StartMenuScope
|
||||
$useManualBackupFile = ($dialogResult.UseManualBackupFile -eq $true)
|
||||
$backupFilePath = $null
|
||||
@@ -54,10 +58,10 @@ function Show-RestoreBackupWindow {
|
||||
}
|
||||
|
||||
$result = if ($scope -eq 'AllUsers') {
|
||||
RestoreStartMenuForAllUsers -BackupFilePath $backupFilePath
|
||||
Restore-StartMenuForAllUsers -BackupFilePath $backupFilePath
|
||||
}
|
||||
else {
|
||||
RestoreStartMenu -BackupFilePath $backupFilePath
|
||||
Restore-StartMenu -BackupFilePath $backupFilePath
|
||||
}
|
||||
|
||||
$resultEntries = @($result)
|
||||
|
||||
Reference in New Issue
Block a user