Add "Last Active Click" Taskbar Behaviour Option (#280)

This commit is contained in:
Connor Shugg
2025-07-30 15:30:51 -04:00
committed by GitHub
parent 49233234fa
commit 9c92f30160
7 changed files with 53 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ param (
[switch]$DisableWidgets, [switch]$HideWidgets,
[switch]$DisableChat, [switch]$HideChat,
[switch]$EnableEndTask,
[switch]$EnableLastActiveClick,
[switch]$ClearStart,
[string]$ReplaceStart,
[switch]$ClearStartAllUsers,
@@ -1095,6 +1096,11 @@ function DisplayCustomModeOptions {
AddParameter 'EnableEndTask' "Enable the 'End Task' option in the taskbar right click menu"
}
}
Write-Output ""
if ($( Read-Host -Prompt " Enable the 'Last Active Click' behavior in the taskbar app area? (y/n)" ) -eq 'y') {
AddParameter 'EnableLastActiveClick' "Enable the 'Last Active Click' behavior in the taskbar app area"
}
}
Write-Output ""
@@ -1677,6 +1683,10 @@ switch ($script:Params.Keys) {
RegImport "> Enabling the 'End Task' option in the taskbar right click menu..." "Enable_End_Task.reg"
continue
}
'EnableLastActiveClick' {
RegImport "> Enabling the 'Last Active Click' behavior in the taskbar app area..." "Enable_Last_Active_Click.reg"
continue
}
'ExplorerToHome' {
RegImport "> Changing the default location that File Explorer opens to `Home`..." "Launch_File_Explorer_To_Home.reg"
continue