minor fixes
All checks were successful
Java CI / test (push) Successful in 1m46s

This commit is contained in:
WeeXnes 2025-04-27 04:02:17 +02:00
parent 492d3c71f2
commit cc2eee27c2
2 changed files with 12 additions and 9 deletions

View file

@ -93,15 +93,8 @@
<StackPanel Orientation="Vertical" Margin="10">
<TextBlock Foreground="White" Text="Display Name:" HorizontalAlignment="Center" Padding="0,10"/>
<TextBox Foreground="White" Name="NameTextBox_Edit"/>
<Separator/>
<Button Foreground="White" Content="Calculate Checksums" Click="ChecksumButtonOnClick" HorizontalAlignment="Stretch"></Button>
<Border Background="#35313d" CornerRadius="5" Padding="10" Margin="0,5" IsVisible="False" Name="ChecksumArea">
<StackPanel>
<TextBlock Foreground="White" FontSize="10" Name="MD5TextBlock"/>
<TextBlock Foreground="White" FontSize="10" Name="SHATextBlock"/>
</StackPanel>
</Border>
<Grid Grid.ColumnDefinitions="*,120,*,120,*" Margin="0,20">
<Separator Margin="0,10"/>
<Grid Grid.ColumnDefinitions="*,120,*,120,*">
<Border Grid.Column="1" Background="#35313d" Padding="0,5" CornerRadius="5">
<StackPanel>
<Image RenderOptions.BitmapInterpolationMode="HighQuality" Source="Images/vmc.png"/>
@ -115,6 +108,7 @@
</StackPanel>
</Border>
</Grid>
<Separator Margin="0,10"/>
<Grid Grid.RowDefinitions="*,*,*" Grid.ColumnDefinitions="*,120,*,120,*">
<ToggleSwitch Name="toggle_mode1" Content="Mode 1" Grid.Row="0" Grid.Column="1" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
<ToggleSwitch Name="toggle_mode2" Content="Mode 2" Grid.Row="1" Grid.Column="1" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
@ -123,6 +117,14 @@
<ToggleSwitch Name="toggle_mode5" Content="Mode 5" Grid.Row="1" Grid.Column="3" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
<ToggleSwitch Name="toggle_mode6" Content="Mode 6" Grid.Row="2" Grid.Column="3" IsCheckedChanged="Toggle_mode_OnIsCheckedChanged"/>
</Grid>
<Separator Margin="0,10"/>
<Button Foreground="White" Content="Calculate Checksums" Click="ChecksumButtonOnClick" HorizontalAlignment="Stretch"></Button>
<Border Background="#35313d" CornerRadius="5" Padding="10" Margin="0,5" IsVisible="False" Name="ChecksumArea">
<StackPanel>
<TextBlock Foreground="White" FontSize="10" Name="MD5TextBlock"/>
<TextBlock Foreground="White" FontSize="10" Name="SHATextBlock"/>
</StackPanel>
</Border>
</StackPanel>
</ScrollViewer>
<Grid Grid.Row="1" ColumnDefinitions="*,*">

View file

@ -154,6 +154,7 @@ public partial class MainWindow : Window
List<string> VMCs = new List<string>();
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "VMC"));
string[] files = Directory.GetFiles(Path.Combine(settings.library_path.GetValue<string>(), "VMC"));
VMCs.Add("");
foreach (var file in files)
{
string fileName = Path.GetFileNameWithoutExtension(file);