Skip to content

Commit

Permalink
style: trim and format
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila committed May 9, 2024
1 parent 7099065 commit 3a5cef5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
56 changes: 28 additions & 28 deletions Functions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -367,23 +367,23 @@ function Wait-ForRegistryKeyChange {
switch -Exact ($ChangeEvent) {
'Name' {
$notifyChange = $notifyChangeName
break
break
}
'Attributes' {
$notifyChange = $notifyChangeAttributes
break
break
}
'LastSet' {
$notifyChange = $notifyChangeLastSet
break
'LastSet' {
$notifyChange = $notifyChangeLastSet
break
}
'Security' {
$notifyChange = $notifyChangeSecurity
break
'Security' {
$notifyChange = $notifyChangeSecurity
break
}
'All' {
'All' {
$notifyChange = $notifyChangeName -bor $notifyChangeAttributes -bor $notifyChangeLastSet -bor $notifyChangeSecurity
break
break
}
Default {
throw 'Unsuported change event!'
Expand Down Expand Up @@ -413,9 +413,9 @@ function Copy-Cursors {
process {
if (-not (Test-Folder -Path $editedCursorsFolder)) {
$Parameters = @{
Path = $editedCursorsFolder
ItemType = 'Directory'
Force = $true
Path = $editedCursorsFolder
ItemType = 'Directory'
Force = $true
}
New-Item @Parameters | Out-Null
}
Expand Down Expand Up @@ -594,67 +594,67 @@ function Reset-Cursor {
$defaultCursors = @(
@{
Name = 'AppStarting'
Path = '%SystemRoot%\cursors\aero_working.ani'
Path = '%SystemRoot%\cursors\aero_working.ani'
},
@{
Name = 'Arrow'
Path = '%SystemRoot%\cursors\aero_arrow.cur'
},
@{
Name = 'Crosshair'
Path = '%SystemRoot%\cursors\aero_unavail.cur'
Path = '%SystemRoot%\cursors\aero_unavail.cur'
},
@{
Name = 'Hand'
Path = '%SystemRoot%\cursors\aero_link.cur'
Path = '%SystemRoot%\cursors\aero_link.cur'
},
@{
Name = 'Help'
Path = '%SystemRoot%\cursors\aero_helpsel.cur'
Path = '%SystemRoot%\cursors\aero_helpsel.cur'
},
@{
Name = 'No'
Path = '%SystemRoot%\cursors\aero_unavail.cur'
Path = '%SystemRoot%\cursors\aero_unavail.cur'
},
@{
Name = 'NWPen'
Path = '%SystemRoot%\cursors\aero_pen.cur'
Path = '%SystemRoot%\cursors\aero_pen.cur'
},
@{
Name = 'Person'
Path = '%SystemRoot%\cursors\aero_person.cur'
Path = '%SystemRoot%\cursors\aero_person.cur'
},
@{
Name = 'Pin'
Path = '%SystemRoot%\cursors\aero_pin.cur'
Path = '%SystemRoot%\cursors\aero_pin.cur'
},
@{
Name = 'SizeAll'
Path = '%SystemRoot%\cursors\aero_move.cur'
Path = '%SystemRoot%\cursors\aero_move.cur'
},
@{
Name = 'SizeNESW'
Path = '%SystemRoot%\cursors\aero_nesw.cur'
Path = '%SystemRoot%\cursors\aero_nesw.cur'
},
@{
Name = 'SizeNS'
Path = '%SystemRoot%\cursors\aero_ns.cur'
Path = '%SystemRoot%\cursors\aero_ns.cur'
},
@{
Name = 'SizeNWSE'
Path = '%SystemRoot%\cursors\aero_nwse.cur'
Path = '%SystemRoot%\cursors\aero_nwse.cur'
},
@{
Name = 'SizeWE'
Path = '%SystemRoot%\cursors\aero_ew.cur'
Path = '%SystemRoot%\cursors\aero_ew.cur'
},
@{
Name = 'UpArrow'
Path = '%SystemRoot%\cursors\aero_up.cur'
Path = '%SystemRoot%\cursors\aero_up.cur'
},
@{
Name = 'Wait'
Path = '%SystemRoot%\cursors\aero_busy.ani'
Path = '%SystemRoot%\cursors\aero_busy.ani'
}
)
}
Expand Down
2 changes: 1 addition & 1 deletion Listener.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
$ErrorActionPreference = 'Stop'

$root = $PSScriptRoot
$functionsModule = "$root\Functions.psm1"
$functionsModule = "$root\Functions.psm1"

Remove-Job -Name 'CursorThemeSync' -Force -ErrorAction 'SilentlyContinue'
Remove-Job -Name 'CursorColorSync' -Force -ErrorAction 'SilentlyContinue'
Expand Down

0 comments on commit 3a5cef5

Please sign in to comment.