mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-03 19:53:50 -05:00
Fix scratch textbox bug
This commit is contained in:
@ -131,8 +131,8 @@ function Invoke-WPFGetIso {
|
|||||||
$sync.MicrowinIsoDrive.Text = $driveLetter
|
$sync.MicrowinIsoDrive.Text = $driveLetter
|
||||||
|
|
||||||
$mountedISOPath = (Split-Path -Path $filePath)
|
$mountedISOPath = (Split-Path -Path $filePath)
|
||||||
if ($sync.MicrowinScratchDirBox.Text.Trim() -eq "Scratch") {
|
if ($sync.MicrowinScratchDirBox.Text.Trim() -eq "Scratch_Directory") {
|
||||||
$sync.MicrowinScratchDirBox.Text =""
|
$sync.MicrowinScratchDirBox.Text = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
$UseISOScratchDir = $sync.WPFMicrowinISOScratchDir.IsChecked
|
$UseISOScratchDir = $sync.WPFMicrowinISOScratchDir.IsChecked
|
||||||
|
@ -795,20 +795,29 @@
|
|||||||
</TextBlock>
|
</TextBlock>
|
||||||
<CheckBox x:Name="WPFMicrowinISOScratchDir" Content="Use ISO directory for ScratchDir " IsChecked="False" Margin="1"
|
<CheckBox x:Name="WPFMicrowinISOScratchDir" Content="Use ISO directory for ScratchDir " IsChecked="False" Margin="1"
|
||||||
ToolTip="Use ISO directory for ScratchDir " />
|
ToolTip="Use ISO directory for ScratchDir " />
|
||||||
|
<Grid>
|
||||||
<Button Name="MicrowinScratchDirBT" Margin="2" Padding="1">
|
<Grid.ColumnDefinitions>
|
||||||
<Button.Content>
|
<ColumnDefinition Width="*" /> <!-- Takes the remaining space -->
|
||||||
|
<ColumnDefinition Width="30" /> <!-- Fixed width for Button -->
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
<TextBox Name="MicrowinScratchDirBox" Background="Transparent" BorderBrush="{MainForegroundColor}"
|
<TextBox Name="MicrowinScratchDirBox" Background="Transparent" BorderBrush="{MainForegroundColor}"
|
||||||
Text="Scratch" Padding="0"
|
Text="Scratch_Directory"
|
||||||
ToolTip="Alt Path For Scratch Directory" BorderThickness="1"
|
Margin="2"
|
||||||
Margin="0,0,0,3" HorizontalAlignment="Left"
|
|
||||||
IsReadOnly="False"
|
IsReadOnly="False"
|
||||||
Height="Auto"
|
ToolTip="Alt Path For Scratch Directory"
|
||||||
Width="110"
|
Grid.Column="0"
|
||||||
Foreground="{ButtonForegroundColor}"
|
VerticalAlignment="Center"
|
||||||
/>
|
Foreground="{LabelboxForegroundColor}">
|
||||||
|
</TextBox>
|
||||||
|
<Button Name="MicrowinScratchDirBT"
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="2"
|
||||||
|
Padding="1" VerticalAlignment="Center">
|
||||||
|
<Button.Content>
|
||||||
|
...
|
||||||
</Button.Content>
|
</Button.Content>
|
||||||
</Button>
|
</Button>
|
||||||
|
</Grid>
|
||||||
<TextBox Name="MicrowinFinalIsoLocation" Background="Transparent" BorderBrush="{MainForegroundColor}"
|
<TextBox Name="MicrowinFinalIsoLocation" Background="Transparent" BorderBrush="{MainForegroundColor}"
|
||||||
Text="ISO location will be printed here"
|
Text="ISO location will be printed here"
|
||||||
Margin="2"
|
Margin="2"
|
||||||
|
Reference in New Issue
Block a user