mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-06-10 18:46:28 +00:00
Fix indentation
This commit is contained in:
@@ -831,17 +831,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# When running as SYSTEM, the "Current User" option is not meaningful.
|
# When running as SYSTEM, the "Current User" option is not meaningful.
|
||||||
# Hide it from the dropdown and default to "Other User".
|
# Hide it from the dropdown and default to "Other User".
|
||||||
$isSystem = ([Security.Principal.WindowsIdentity]::GetCurrent().User.Value -eq 'S-1-5-18')
|
$isSystem = ([Security.Principal.WindowsIdentity]::GetCurrent().User.Value -eq 'S-1-5-18')
|
||||||
if ($isSystem -and $userSelectionCombo.Items.Count -gt 0) {
|
if ($isSystem -and $userSelectionCombo.Items.Count -gt 0) {
|
||||||
$currentUserItem = $userSelectionCombo.Items[0]
|
$currentUserItem = $userSelectionCombo.Items[0]
|
||||||
if ($currentUserItem -is [System.Windows.Controls.ComboBoxItem]) {
|
if ($currentUserItem -is [System.Windows.Controls.ComboBoxItem]) {
|
||||||
$currentUserItem.Visibility = 'Collapsed'
|
$currentUserItem.Visibility = 'Collapsed'
|
||||||
$currentUserItem.IsEnabled = $false
|
$currentUserItem.IsEnabled = $false
|
||||||
|
}
|
||||||
|
$userSelectionCombo.SelectedIndex = 1
|
||||||
}
|
}
|
||||||
$userSelectionCombo.SelectedIndex = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
$restartExplorerCheckBox = $window.FindName('RestartExplorerCheckBox')
|
$restartExplorerCheckBox = $window.FindName('RestartExplorerCheckBox')
|
||||||
if ($restartExplorerCheckBox -and $script:Params.ContainsKey("NoRestartExplorer")) {
|
if ($restartExplorerCheckBox -and $script:Params.ContainsKey("NoRestartExplorer")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user