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 ca1fed1 commit f2c7ed0
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 f2c7ed0

Please sign in to comment.