update Export.axaml and Export.axaml.cs

This commit is contained in:
Alex
2025-08-30 18:29:47 -07:00
parent 6138c693bf
commit 11a9af5778
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -40,7 +40,7 @@
<TextBlock Name="NoFFMpegMessage" Text="Could not find FFmpeg. Make sure it is installed and on PATH!" TextWrapping="Wrap" Foreground="Red" FontWeight="DemiBold" Opacity="0.8" FontSize="12"/> <TextBlock Name="NoFFMpegMessage" Text="Could not find FFmpeg. Make sure it is installed and on PATH!" TextWrapping="Wrap" Foreground="Red" FontWeight="DemiBold" Opacity="0.8" FontSize="12"/>
</StackPanel> </StackPanel>
<CheckBox Name="TickExcludeVideos" Content="Exclude videos"/> <CheckBox Name="TickExcludeVideos" Content="Exclude videos" IsChecked="True" IsEnabled="False"/>
<CheckBox Name="TickGroupExports" Content="Group song folders by release version"/> <CheckBox Name="TickGroupExports" Content="Group song folders by release version"/>
<!-- <CheckBox Content="Delete original files"/> --> <!-- <CheckBox Content="Delete original files"/> -->
@@ -70,6 +70,8 @@
<DataGridTemplateColumn.CellTemplate> <DataGridTemplateColumn.CellTemplate>
<DataTemplate> <DataTemplate>
<Image Source="{Binding StatusImg}" Height="24"/> <Image Source="{Binding StatusImg}" Height="24"/>
<!-- TODO -->
<!-- <UserControl Content="{Binding StatusContent}" Height="24"/> -->
</DataTemplate> </DataTemplate>
</DataGridTemplateColumn.CellTemplate> </DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn> </DataGridTemplateColumn>
+5 -1
View File
@@ -199,7 +199,11 @@ public partial class Export : Panel
{ {
if (cancelToken.IsCancellationRequested) return; if (cancelToken.IsCancellationRequested) return;
await Dispatcher.UIThread.InvokeAsync(() => row.Status = ExportStatus.Working); await Dispatcher.UIThread.InvokeAsync(() =>
{
row.Status = ExportStatus.Working;
ListingTable.ScrollIntoView(row, null);
});
Exporter.Run(path, row.Song, options); Exporter.Run(path, row.Song, options);
await Dispatcher.UIThread.InvokeAsync(() => row.Status = ExportStatus.Finished); await Dispatcher.UIThread.InvokeAsync(() => row.Status = ExportStatus.Finished);
} }