Skip to content

Commit

Permalink
Fix saving C# project into a single file | #66
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Nemec <dan@nem.ec>
  • Loading branch information
TSRBerry and nemec committed Sep 21, 2022
1 parent 113ef11 commit 7ea813a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ILSpy.Core/TreeNodes/AssemblyTreeNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ public override async Task<bool> Save(DecompilerTextView textView)
SaveFileDialog dlg = new SaveFileDialog();
dlg.Title = "Save file";
dlg.InitialFileName = DecompilerTextView.CleanUpName(LoadedAssembly.ShortName);
dlg.DefaultExtension = language.ProjectFileExtension;
dlg.Filters = new List<FileDialogFilter>()
{
new FileDialogFilter() { Name = language.Name + " project", Extensions = { language.ProjectFileExtension.TrimStart('.') } },
Expand Down

0 comments on commit 7ea813a

Please sign in to comment.