@@ -175,7 +175,8 @@ function Show-GUI() {
175
175
$CbPhotoViewer = New-CheckBox - Text " Enable Photo Viewer" - Width $LayoutT1.PanelElementWidth - Height $LayoutT1.CheckBoxHeight - LocationX $LayoutT1.PanelElementX - FontSize $LayoutT1.Heading [3 ] - ElementBefore $CbPhoneLink
176
176
$CbSearchAppForUnknownExt = New-CheckBox - Text " Enable Search App for Unknown Ext." - Width $LayoutT1.PanelElementWidth - Height $LayoutT1.CheckBoxHeight - LocationX $LayoutT1.PanelElementX - FontSize $LayoutT1.Heading [3 ] - ElementBefore $CbPhotoViewer
177
177
$CbTelemetry = New-CheckBox - Text " Enable Telemetry" - Width $LayoutT1.PanelElementWidth - Height $LayoutT1.CheckBoxHeight - LocationX $LayoutT1.PanelElementX - FontSize $LayoutT1.Heading [3 ] - ElementBefore $CbSearchAppForUnknownExt
178
- $CbXboxGameBarDVRandMode = New-CheckBox - Text " Enable Xbox Game Bar/DVR/Mode" - Width $LayoutT1.PanelElementWidth - Height $LayoutT1.CheckBoxHeight - LocationX $LayoutT1.PanelElementX - FontSize $LayoutT1.Heading [3 ] - ElementBefore $CbWindowsSearch
178
+ $CbWindowsSpotlight = New-CheckBox - Text " Enable Windows Spotlight" - Width $LayoutT1.PanelElementWidth - Height $LayoutT1.CheckBoxHeight - LocationX $LayoutT1.PanelElementX - FontSize $LayoutT1.Heading [3 ] - ElementBefore $CbTelemetry
179
+ $CbXboxGameBarDVRandMode = New-CheckBox - Text " Enable Xbox Game Bar/DVR/Mode" - Width $LayoutT1.PanelElementWidth - Height $LayoutT1.CheckBoxHeight - LocationX $LayoutT1.PanelElementX - FontSize $LayoutT1.Heading [3 ] - ElementBefore $CbWindowsSpotlight
179
180
180
181
# ==> T1 Panel 2
181
182
$ClDebloatTools = New-Label - Text " System Debloat Tools" - Width $LayoutT1.PanelElementWidth - Height $LayoutT1.CaptionLabelHeight - LocationX $LayoutT1.PanelElementX - LocationY 0 - FontSize $LayoutT1.Heading [2 ] - FontStyle ' Bold'
@@ -466,7 +467,7 @@ function Show-GUI() {
466
467
$TabSoftwareInstall.Controls.AddRange (@ ($TlSoftwareInstall , $ClSoftwareInstall , $T2Panel1 , $T2Panel2 , $T2Panel3 , $T2Panel4 ))
467
468
$TabSettings.Controls.AddRange (@ ($TlSettings , $T3PanelPackageManagersSettings ))
468
469
# Add Elements to each Tab Panel
469
- $T1Panel1.Controls.AddRange (@ ($ClCustomizeFeatures , $CbDarkTheme , $CbActivityHistory , $CbBackgroundsApps , $CbClipboardHistory , $CbClipboardSyncAcrossDevice , $CbCortana , $CbHibernate , $CbLegacyContextMenu , $CbLocationTracking , $CbNewsAndInterest , $CbOldVolumeControl , $CbOnlineSpeechRecognition , $CbPhoneLink , $CbPhotoViewer , $CbSearchAppForUnknownExt , $CbTelemetry , $CbXboxGameBarDVRandMode ))
470
+ $T1Panel1.Controls.AddRange (@ ($ClCustomizeFeatures , $CbDarkTheme , $CbActivityHistory , $CbBackgroundsApps , $CbClipboardHistory , $CbClipboardSyncAcrossDevice , $CbCortana , $CbHibernate , $CbLegacyContextMenu , $CbLocationTracking , $CbNewsAndInterest , $CbOldVolumeControl , $CbOnlineSpeechRecognition , $CbPhoneLink , $CbPhotoViewer , $CbSearchAppForUnknownExt , $CbTelemetry , $CbWindowsSpotlight , $ CbXboxGameBarDVRandMode ))
470
471
$T1Panel2.Controls.AddRange (@ ($ClDebloatTools , $ApplyTweaks , $UndoTweaks , $DiskCleanUp , $RemoveTemporaryFiles , $RemoveWindowsOld , $RemoveMSEdge , $RemoveOneDrive , $RemoveXbox , $PictureBox1 ))
471
472
$T1Panel2.Controls.AddRange (@ ($ClInstallSystemApps , $InstallDolbyAudio , $InstallMicrosoftEdge , $InstallOneDrive , $InstallPaintPaint3D , $InstallPhoneLink , $InstallQuickAssist , $InstallSoundRecorder , $InstallTaskbarWidgets , $InstallUWPWMediaPlayer , $InstallXbox ))
472
473
$T1Panel2.Controls.AddRange (@ ($ClOtherTools , $RandomizeSystemColor , $ReinstallBloatApps , $RepairWindows , $ShowDebloatInfo ))
@@ -793,6 +794,16 @@ function Show-GUI() {
793
794
}
794
795
})
795
796
797
+ $CbWindowsSpotlight.Add_Click ( {
798
+ If ($CbWindowsSpotlight.CheckState -eq " Checked" ) {
799
+ Enable-WindowsSpotlight
800
+ $CbWindowsSpotlight.Text = " [ON] Windows Spotlight *"
801
+ } Else {
802
+ Disable-WindowsSpotlight
803
+ $CbWindowsSpotlight.Text = " [OFF] Windows Spotlight"
804
+ }
805
+ })
806
+
796
807
$CbXboxGameBarDVRandMode.Add_Click ( {
797
808
If ($CbXboxGameBarDVRandMode.CheckState -eq " Checked" ) {
798
809
Enable-XboxGameBarDVRandMode
0 commit comments