Skip to content

Commit

Permalink
remove trailing whitespaces
Browse files Browse the repository at this point in the history
THX to Mr.K :)
  • Loading branch information
MyDrift-user committed Jul 15, 2024
1 parent 0fc921c commit 172f893
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion functions/private/Install-WinUtilWinget.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ function Install-WinUtilWinget {
throw [WingetFailedInstall]::new('Failed to install!')
}
}

}
2 changes: 1 addition & 1 deletion functions/private/Invoke-WinUtilFeatureInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function Invoke-WinUtilFeatureInstall {
}

else{

Write-Warning "Unable to Install $feature due to unhandled exception"
Write-Warning $psitem.Exception.StackTrace
}
Expand Down
14 changes: 7 additions & 7 deletions functions/private/Set-WinUtilTaskbarItem.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function Set-WinUtilTaskbaritem {
- Set-WinUtilTaskbaritem -overlay "None"
Custom icon:
- Set-WinUtilTaskbaritem -overlay "C:\path\to\icon.png"
.PARAMETER description
Description to display on the taskbar item preview
Set-WinUtilTaskbaritem -description "This is a description"
Expand All @@ -46,30 +46,30 @@ function Set-WinUtilTaskbaritem {
<#
.SYNOPSIS
Converts an image file to a Bitmap object
.PARAMETER image
The path to the image file to convert
.EXAMPLE
ConvertTo-Bitmap -imageFilePath "C:\path\to\image.png"
#>
param (
$imageFilePath
)

# Read the image file as a byte array
$imageBytes = [System.IO.File]::ReadAllBytes($imageFilePath)

# Convert the byte array to a Base64 string
$base64String = [System.Convert]::ToBase64String($imageBytes)

# Create a streaming image by streaming the base64 string to a bitmap streamsource
$bitmap = New-Object System.Windows.Media.Imaging.BitmapImage
$bitmap.BeginInit()
$bitmap.StreamSource = [System.IO.MemoryStream][System.Convert]::FromBase64String($base64String)
$bitmap.EndInit()
$bitmap.Freeze()

# Return the bitmap object
return $bitmap
}
Expand Down
2 changes: 1 addition & 1 deletion functions/public/Invoke-WPFFeatureInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Invoke-WPFFeatureInstall {

$sync.ProcessRunning = $false
$sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" })

Write-Host "==================================="
Write-Host "--- Features are Installed ---"
Write-Host "--- A Reboot may be required ---"
Expand Down
4 changes: 2 additions & 2 deletions functions/public/Invoke-WPFShortcut.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ function Invoke-WPFShortcut {
else{
$shell = "powershell.exe"
}

$shellArgs = "-ExecutionPolicy Bypass -Command `"Start-Process $shell -verb runas -ArgumentList `'-Command `"irm https://christitus.com/win | iex`"`'"

$DestinationName = "WinUtil.lnk"

}
Expand Down

0 comments on commit 172f893

Please sign in to comment.