Skip to content

Commit

Permalink
refactor(ThemeMRU): New-ItemProperty -> Set
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Aug 9, 2024
1 parent a37aa6f commit b6bf2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/playbook/Executables/AtlasModules/Scripts/newUsers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ $atlasDesktop = "$windir\AtlasDesktop"
$atlasModules = "$windir\AtlasModules"

function ThemeMRU {
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes" -Name "ThemeMRU" -Value "$((@(
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes" -Name "ThemeMRU" -Value "$((@(
"atlas-v0.4.x-dark.theme",
"atlas-v0.4.x-light.theme",
"atlas-v0.3.x-dark.theme",
"atlas-v0.3.x-light.theme",
"dark.theme",
"aero.theme"
) | ForEach-Object { "$windir\resources\Themes\$_" }) -join ';');" -PropertyType String -Force
) | ForEach-Object { "$windir\resources\Themes\$_" }) -join ';');" -Type String -Force
}
if ($ThemeMRU) { ThemeMRU; exit }

Expand Down

0 comments on commit b6bf2bc

Please sign in to comment.