fixed accidental removal of findname grid call

This commit is contained in:
MyDrift 2024-08-22 21:22:13 +02:00
parent f284173767
commit cb2576e6db

View File

@ -35,6 +35,8 @@ function Invoke-WPFUIElements {
if (!$borderstyle -or !$HoverTextBlockStyle -or !$ColorfulToggleSwitchStyle) {
throw "Failed to retrieve Styles using 'FindResource' from main window element."
}
$targetGrid = $window.FindName($targetGridName)
if (!$targetGrid) {
throw "Failed to retrieve Target Grid by name, provided name: $targetGrid"