From cb2576e6dbc7b23cf2a6b6e49fb509f2a6bbadd9 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Thu, 22 Aug 2024 21:22:13 +0200 Subject: [PATCH] fixed accidental removal of findname grid call --- functions/public/Invoke-WPFUIElements.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/public/Invoke-WPFUIElements.ps1 b/functions/public/Invoke-WPFUIElements.ps1 index 2946f688..2ec3f2bd 100644 --- a/functions/public/Invoke-WPFUIElements.ps1 +++ b/functions/public/Invoke-WPFUIElements.ps1 @@ -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"