ise ico if available

This commit is contained in:
MyDrift 2024-09-05 08:59:07 +02:00
parent ae87b35dc3
commit 620ee98d32

View File

@ -457,7 +457,11 @@ $winutildir["path"] = "$env:LOCALAPPDATA\winutil\"
$winutildir["logo.ico"] = $winutildir["path"] + "cttlogo.ico" $winutildir["logo.ico"] = $winutildir["path"] + "cttlogo.ico"
$sync["logorender"] = (Invoke-WinUtilAssets -Type "Logo" -Size 90 -Render) if (Test-Path $winutildir["logo.ico"]) {
$sync["logorender"] = $winutildir["logo.ico"]
} else {
$sync["logorender"] = (Invoke-WinUtilAssets -Type "Logo" -Size 90 -Render)
}
$sync["checkmarkrender"] = (Invoke-WinUtilAssets -Type "checkmark" -Size 512 -Render) $sync["checkmarkrender"] = (Invoke-WinUtilAssets -Type "checkmark" -Size 512 -Render)
$sync["warningrender"] = (Invoke-WinUtilAssets -Type "warning" -Size 512 -Render) $sync["warningrender"] = (Invoke-WinUtilAssets -Type "warning" -Size 512 -Render)