Skip to content

Commit

Permalink
Update Download_Sophia.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 committed Feb 3, 2024
1 parent c0acf43 commit 17092db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Download_Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ if (-not ("WinAPI.ForegroundWindow" -as [type]))
{
try
{
Add-Type @Signature
Add-Type @SetForegroundWindow
}
catch [System.Management.Automation.ParameterBindingException]
catch [System.ComponentModel.Win32Exception]
{
Write-Warning -Message "PowerShell 5.1 does not compile code if the username contains non-Latin characters (including emoji) and is written in lowercase. Ignore this error message. Open background folder manually."
}
Expand Down

0 comments on commit 17092db

Please sign in to comment.