Skip to content

Commit 83bb1a5

Browse files
fix 2a00d55 in more neat way
1 parent df7eb3d commit 83bb1a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Listener.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Import-Module -Name $PSScriptRoot\Functions.ps1
1111
#region Variables
1212
$cursorSize = Get-Content -Path $PSScriptRoot\Resources\Preferences -First 1
1313
$useClassicWheel = Get-Content -Path $PSScriptRoot\Resources\Preferences -First 2 | Select-Object -Skip 1
14-
$useAlternatePrecision = [System.Convert]::ToBoolean( $(Get-Content -Path $PSScriptRoot\Resources\Preferences -Last 1) )
14+
$useAlternatePrecision = Get-Content -Path $PSScriptRoot\Resources\Preferences -Last 1
1515
$byteDiffFolder = "$PSScriptRoot\Resources\Byte Diff\$cursorSize"
1616
$customCursorFolder = "$PSScriptRoot\Resources\Custom Cursor"
1717
$lastTheme = Get-WindowsTheme
@@ -24,7 +24,7 @@ while (1) {
2424
if ($lastTheme -ne $currentTheme) {
2525
$originalCursorFolder = "$PSScriptRoot\Resources\Original Cursors\$currentTheme\$cursorSize"
2626
Copy-Item -Path $originalCursorFolder\default\* -Destination $customCursorFolder -Recurse -Force
27-
if ($useAlternatePrecision) {
27+
if ($useAlternatePrecision -eq $true) {
2828
Copy-Item -Path $originalCursorFolder\alternatives\precision.cur -Destination $customCursorFolder -Force
2929
}
3030
if ($useClassicWheel -eq $false) {

0 commit comments

Comments
 (0)