mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-16 01:40:35 -06:00
hotfix
This commit is contained in:
parent
f50845078e
commit
e8d1bd8eb8
@ -7,14 +7,14 @@ function ConvertTo-Bitmap {
|
|||||||
The path to the image file to convert
|
The path to the image file to convert
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
ConvertTo-Bitmap -image "C:\path\to\image.png"
|
ConvertTo-Bitmap -imageFilePath "C:\path\to\image.png"
|
||||||
#>
|
#>
|
||||||
param (
|
param (
|
||||||
$image
|
$imageFilePath
|
||||||
)
|
)
|
||||||
|
|
||||||
# Read the image file as a byte array
|
# 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
|
# Convert the byte array to a Base64 string
|
||||||
$base64String = [System.Convert]::ToBase64String($imageBytes)
|
$base64String = [System.Convert]::ToBase64String($imageBytes)
|
||||||
|
@ -457,8 +457,6 @@ if (-NOT (Test-Path -Path $winutildir["checkmark.png"])) {
|
|||||||
|
|
||||||
Set-WinUtilTaskbaritem -overlay "logo" | Out-Null
|
Set-WinUtilTaskbaritem -overlay "logo" | Out-Null
|
||||||
|
|
||||||
$sync["Form"].icon = $winutildir["logo.png"]
|
|
||||||
|
|
||||||
$sync["Form"].Add_Activated({
|
$sync["Form"].Add_Activated({
|
||||||
Set-WinUtilTaskbaritem -overlay "logo"
|
Set-WinUtilTaskbaritem -overlay "logo"
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user