added "ignore errors" option to media conversion.

This commit is contained in:
morkt
2015-06-14 13:54:03 +04:00
parent 9d88975f13
commit 30e7a470d3
9 changed files with 42 additions and 7 deletions

View File

@@ -61,7 +61,6 @@ namespace GARbro.GUI
if (!result)
return;
var format = convert_dialog.ImageConversionFormat.SelectedItem as ImageFormat;
// var format = FormatCatalog.Instance.ImageFormats.FirstOrDefault (f => f.Tag == selected);
if (null == format)
{
Trace.WriteLine ("Format is not selected", "ConvertMediaExec");
@@ -71,6 +70,7 @@ namespace GARbro.GUI
{
Directory.SetCurrentDirectory (ViewModel.Path);
var converter = new GarConvertMedia (this);
converter.IgnoreErrors = convert_dialog.IgnoreErrors.IsChecked ?? false;
converter.Convert (source, format);
}
catch (Exception X)