Skip to content

Commit

Permalink
Use implicit default for ‘SearchboxTaskbarMode’ registry value
Browse files Browse the repository at this point in the history
#101 #59

Related Work Items: #5, #101
  • Loading branch information
cschneegans committed Nov 15, 2024
1 parent 7ee35d7 commit ea5e718
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modifier/Optimizations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,10 @@ public override void Process()
}
}
{
UserOnceScript.Append(@$"Set-ItemProperty -LiteralPath 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Search' -Name 'SearchboxTaskbarMode' -Type 'DWord' -Value {Configuration.TaskbarSearch:D};");
if (Configuration.TaskbarSearch != TaskbarSearchMode.Box)
{
UserOnceScript.Append(@$"Set-ItemProperty -LiteralPath 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Search' -Name 'SearchboxTaskbarMode' -Type 'DWord' -Value {Configuration.TaskbarSearch:D};");
}
}
{
void SetStartPins(string json)
Expand Down

0 comments on commit ea5e718

Please sign in to comment.