mirror of
https://github.com/muskit/MercuryConverter.git
synced 2026-06-02 20:24:26 -07:00
update Export.axaml and Export.axaml.cs
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user