Move DisableDesktopSpotlight into it's own option in custom mode selection

This commit is contained in:
Raphire
2025-05-20 20:38:47 +02:00
parent 1e7d212c10
commit df9f00c726

View File

@@ -872,9 +872,8 @@ function DisplayCustomModeOptions {
Write-Output "" Write-Output ""
if ($( Read-Host -Prompt "Disable tips, tricks, suggestions and ads in start, settings, notifications, explorer, desktop and lockscreen? (y/n)" ) -eq 'y') { if ($( Read-Host -Prompt "Disable tips, tricks, suggestions and ads in start, settings, notifications, explorer and lockscreen? (y/n)" ) -eq 'y') {
AddParameter 'DisableSuggestions' 'Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer' AddParameter 'DisableSuggestions' 'Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer'
AddParameter 'DisableDesktopSpotlight' 'Disable the Windows Spotlight desktop background option.'
AddParameter 'DisableLockscreenTips' 'Disable tips & tricks on the lockscreen' AddParameter 'DisableLockscreenTips' 'Disable tips & tricks on the lockscreen'
} }
@@ -894,6 +893,12 @@ function DisplayCustomModeOptions {
} }
} }
Write-Output ""
if ($( Read-Host -Prompt "Disable Windows Spotlight background on desktop? (y/n)" ) -eq 'y') {
AddParameter 'DisableDesktopSpotlight' 'Disable the Windows Spotlight desktop background option.'
}
# Only show this option for Windows 11 users running build 22000 or later # Only show this option for Windows 11 users running build 22000 or later
if ($WinVersion -ge 22000) { if ($WinVersion -ge 22000) {
Write-Output "" Write-Output ""