From 620ee98d32fd7cc82b6e314ba476e03a438b5a43 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Thu, 5 Sep 2024 08:59:07 +0200 Subject: [PATCH] ise ico if available --- scripts/main.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index e7b67c2a..c44c6f8f 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -457,7 +457,11 @@ $winutildir["path"] = "$env:LOCALAPPDATA\winutil\" $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["warningrender"] = (Invoke-WinUtilAssets -Type "warning" -Size 512 -Render)