From 210f321a3494b99a8b74b06906e3f66dde7bae88 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Mon, 19 Aug 2024 13:40:24 +0200 Subject: [PATCH] preprocessing --- functions/public/Invoke-WPFUIElements.ps1 | 2 +- scripts/main.ps1 | 4 ++-- xaml/inputXML.xaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/public/Invoke-WPFUIElements.ps1 b/functions/public/Invoke-WPFUIElements.ps1 index 6049864f..d5f985c8 100644 --- a/functions/public/Invoke-WPFUIElements.ps1 +++ b/functions/public/Invoke-WPFUIElements.ps1 @@ -25,7 +25,7 @@ function Invoke-WPFUIElements { [Parameter(Mandatory)] [int]$columncount - ) + ) $theme = $sync.configs.themes.$ctttheme diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 32a1eb96..0797f54a 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -96,8 +96,8 @@ Invoke-WPFUIElements -configVariable $sync.configs.feature -targetGridName "feat $xaml.SelectNodes("//*[@Name]") | ForEach-Object {$sync["$("$($psitem.Name)")"] = $sync["Form"].FindName($psitem.Name)} $sync.keys | ForEach-Object { - if($sync.$psitem){ - if($($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "ToggleButton"){ + if($sync.$psitem) { + if($($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "ToggleButton") { $sync["$psitem"].Add_Click({ [System.Object]$Sender = $args[0] Invoke-WPFButton $Sender.name diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml index b4199b76..6b6725f1 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -790,7 +790,7 @@ - +