diff --git a/functions/private/convertTo-Bitmap.ps1 b/functions/private/convertTo-Bitmap.ps1 index 53570ded..f84e804b 100644 --- a/functions/private/convertTo-Bitmap.ps1 +++ b/functions/private/convertTo-Bitmap.ps1 @@ -7,14 +7,14 @@ function ConvertTo-Bitmap { The path to the image file to convert .EXAMPLE - ConvertTo-Bitmap -image "C:\path\to\image.png" + ConvertTo-Bitmap -imageFilePath "C:\path\to\image.png" #> param ( - $image + $imageFilePath ) # Read the image file as a byte array - $imageBytes = [System.IO.File]::ReadAllBytes($image) + $imageBytes = [System.IO.File]::ReadAllBytes($imageFilePath) # Convert the byte array to a Base64 string $base64String = [System.Convert]::ToBase64String($imageBytes) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 9f8d6820..ab52dfc4 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -457,8 +457,6 @@ if (-NOT (Test-Path -Path $winutildir["checkmark.png"])) { Set-WinUtilTaskbaritem -overlay "logo" | Out-Null -$sync["Form"].icon = $winutildir["logo.png"] - $sync["Form"].Add_Activated({ Set-WinUtilTaskbaritem -overlay "logo" })