diff --git a/CreateArchive.xaml b/CreateArchive.xaml
index 1d4b5237..00b02923 100644
--- a/CreateArchive.xaml
+++ b/CreateArchive.xaml
@@ -42,7 +42,7 @@
diff --git a/CreateArchive.xaml.cs b/CreateArchive.xaml.cs
index 05a8822a..fb00e2a8 100644
--- a/CreateArchive.xaml.cs
+++ b/CreateArchive.xaml.cs
@@ -2,6 +2,7 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
+using System.Collections.Generic;
using System.Text;
using System.Linq;
using Microsoft.Win32;
@@ -23,10 +24,15 @@ namespace GARbro.GUI
{
var format = this.ArchiveFormat.SelectedItem as ArchiveFormat;
if (null != format)
- ArchiveName.Text = Path.ChangeExtension (initial_name, format.Extensions.First());
+ initial_name = Path.ChangeExtension (initial_name, format.Extensions.First());
}
+ ArchiveName.Text = initial_name;
}
+ private readonly IEnumerable m_formats = FormatCatalog.Instance.ArcFormats.Where (f => f.CanCreate);
+
+ public IEnumerable ArcFormats { get { return m_formats; } }
+
public ResourceOptions ArchiveOptions { get; private set; }
void Button_Click (object sender, RoutedEventArgs e)