From d905bbf5d5179d8693e30e64096ec592703806f0 Mon Sep 17 00:00:00 2001 From: KonTy Date: Fri, 24 May 2024 20:20:07 -0700 Subject: [PATCH] Fix scratch textbox bug --- functions/public/Invoke-WPFGetIso.ps1 | 4 +-- xaml/inputXML.xaml | 35 +++++++++++++++++---------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/functions/public/Invoke-WPFGetIso.ps1 b/functions/public/Invoke-WPFGetIso.ps1 index 1b448a4f..f9c86f76 100644 --- a/functions/public/Invoke-WPFGetIso.ps1 +++ b/functions/public/Invoke-WPFGetIso.ps1 @@ -131,8 +131,8 @@ function Invoke-WPFGetIso { $sync.MicrowinIsoDrive.Text = $driveLetter $mountedISOPath = (Split-Path -Path $filePath) - if ($sync.MicrowinScratchDirBox.Text.Trim() -eq "Scratch") { - $sync.MicrowinScratchDirBox.Text ="" + if ($sync.MicrowinScratchDirBox.Text.Trim() -eq "Scratch_Directory") { + $sync.MicrowinScratchDirBox.Text = "" } $UseISOScratchDir = $sync.WPFMicrowinISOScratchDir.IsChecked diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml index 9fee01b4..bdf7b61c 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -795,20 +795,29 @@ - - + Text="Scratch_Directory" + Margin="2" + IsReadOnly="False" + ToolTip="Alt Path For Scratch Directory" + Grid.Column="0" + VerticalAlignment="Center" + Foreground="{LabelboxForegroundColor}"> + + +