moved setting Window Name

This commit is contained in:
MyDrift 2024-07-01 18:32:25 +02:00 committed by GitHub
parent 3e5b01a297
commit f17662adbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,9 +12,6 @@
Run in Admin Powershell > ./windev.ps1
#>
# Set PowerShell window title
$Host.UI.RawUI.WindowTitle = $myInvocation.MyCommand.Definition
# Function to fetch the latest release tag from the GitHub API
function Get-LatestRelease {
try {
@ -43,3 +40,6 @@ function RedirectToLatestPreRelease {
# Call the redirect function
RedirectToLatestPreRelease
# Set PowerShell window title
$Host.UI.RawUI.WindowTitle = $myInvocation.MyCommand.Definition