mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-07-16 17:00:43 +00:00
* Clean up analyzer warnings * Align analyzer warning cleanup policy * Run PSScriptAnalyzer directly in unittests workflow * Bind lazy-rendered buttons to click handlers * Remove WinUtil performance tracing * Fix Win11 ISO creator temp directory reuse
19 lines
622 B
PowerShell
19 lines
622 B
PowerShell
function Initialize-WinUtilTaskbarOverlayAssets {
|
|
param(
|
|
[bool]$IncludeLogo = $true,
|
|
[bool]$IncludeStatusAssets = $true
|
|
)
|
|
|
|
if ($IncludeLogo -and -not $sync["logorender"]) {
|
|
$sync["logorender"] = (Invoke-WinUtilAssets -Type "Logo" -Size 90 -Render)
|
|
}
|
|
|
|
if ($IncludeStatusAssets -and -not $sync["checkmarkrender"]) {
|
|
$sync["checkmarkrender"] = (Invoke-WinUtilAssets -Type "checkmark" -Size 512 -Render)
|
|
}
|
|
|
|
if ($IncludeStatusAssets -and -not $sync["warningrender"]) {
|
|
$sync["warningrender"] = (Invoke-WinUtilAssets -Type "warning" -Size 512 -Render)
|
|
}
|
|
}
|