Fixed some file browser regexps

This commit is contained in:
MascaraSnake 2017-01-28 18:36:39 +01:00
parent 39fddcb7c5
commit 8e068aad5b
4 changed files with 7 additions and 7 deletions

View file

@ -115,7 +115,7 @@ namespace CodeImp.DoomBuilder.Controls
filterall += exts;
}
}
openfile.Filter = "Script files|" + filterall + "|" + filterseperate + "|All files|*.*";
openfile.Filter = "Script files|" + filterall + "|" + filterseperate + "|All files|*";
// Load the script lumps
ScriptDocumentTab activetab = null; //mxd
@ -974,7 +974,7 @@ namespace CodeImp.DoomBuilder.Controls
{
// Setup save dialog
string scriptfilter = t.Config.Description + "|*." + string.Join(";*.", t.Config.Extensions);
savefile.Filter = scriptfilter + "|All files|*.*";
savefile.Filter = scriptfilter + "|All files|*";
if (savefile.ShowDialog(this.ParentForm) == DialogResult.OK)
{
// Save to new filename

View file

@ -1178,7 +1178,7 @@ namespace CodeImp.DoomBuilder
// Open map file dialog
OpenFileDialog openfile = new OpenFileDialog();
openfile.Filter = "WAD Files (*.wad)|*.wad|All Files|*.*";
openfile.Filter = "WAD Files (*.wad)|*.wad|All Files|*";
openfile.Title = "Open Map";
if(!string.IsNullOrEmpty(settings.LastUsedMapFolder) && Directory.Exists(settings.LastUsedMapFolder)) //mxd
openfile.InitialDirectory = settings.LastUsedMapFolder; //mxd
@ -1455,7 +1455,7 @@ namespace CodeImp.DoomBuilder
// Show save as dialog
SaveFileDialog savefile = new SaveFileDialog();
savefile.Filter = "WAD Files (*.wad)|*.wad|All Files|*.*";
savefile.Filter = "WAD Files (*.wad)|*.wad|All Files|*";
savefile.Title = "Save Map As";
savefile.AddExtension = true;
savefile.CheckPathExists = true;
@ -1527,7 +1527,7 @@ namespace CodeImp.DoomBuilder
// Show save as dialog
SaveFileDialog savefile = new SaveFileDialog();
savefile.Filter = "WAD Files (*.wad)|*.wad|All Files|*.*";
savefile.Filter = "WAD Files (*.wad)|*.wad|All Files|*";
savefile.Title = "Save Map Into";
savefile.AddExtension = true;
savefile.CheckPathExists = true;

View file

@ -270,7 +270,7 @@ namespace CodeImp.DoomBuilder.Windows
//
// browsefile
//
this.browsefile.Filter = "All supported images|*.bmp;*.gif;*.png|All Files|*.*";
this.browsefile.Filter = "All supported images|*.bmp;*.gif;*.png|All Files|*";
this.browsefile.RestoreDirectory = true;
this.browsefile.Title = "Select Background Image File";
//

View file

@ -303,7 +303,7 @@ namespace CodeImp.DoomBuilder.Windows
//
// wadfiledialog
//
this.wadfiledialog.Filter = "WAD Files (*.wad;*.srb)|*.wad;*srb|TopDown Files (*.td)|*.td|All Files|*.*";
this.wadfiledialog.Filter = "WAD Files (*.wad;*.srb)|*.wad;*.srb|TopDown Files (*.td)|*.td|All Files|*";
this.wadfiledialog.Title = "Browse WAD File";
//
// dirdialog