Skip to content

Commit

Permalink
fix settings icon url
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrhakr committed Mar 29, 2024
1 parent 4da895a commit 6d396a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scans.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ $settingsButton.Size = New-Object System.Drawing.Size(30, 30)

# Load image from PNG file
$imagePath = [System.IO.Path]::GetTempPath() + [System.IO.Path]::GetRandomFileName()
Invoke-WebRequest 'https://raw.githubusercontent.com/mstrhakr/scans/main/img/settings.ico' -OutFile $imagePath | Out-Null;
Invoke-WebRequest 'https://raw.githubusercontent.com/mstrhakr/scans/main/img/settings.png' -OutFile $imagePath | Out-Null;
$image = [System.Drawing.Image]::FromFile($imagePath)
$thumbnailSize = New-Object System.Drawing.Size(($settingsButton.Width - 10), ($settingsButton.Height - 10))
$thumbnailImage = $image.GetThumbnailImage($thumbnailSize.Width, $thumbnailSize.Height, $null, [System.IntPtr]::Zero)
Expand Down

0 comments on commit 6d396a5

Please sign in to comment.