Skip to content

Commit 78bfbab

Browse files
author
tznind
committed
Recreate Menus showcase and use the new PreserveFilenameOnDirectoryChanges on New
1 parent 1017424 commit 78bfbab

3 files changed

Lines changed: 252 additions & 0 deletions

File tree

Showcase/Menus.Designer.cs

Lines changed: 231 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Showcase/Menus.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
//------------------------------------------------------------------------------
3+
4+
// <auto-generated>
5+
// This code was generated by:
6+
// TerminalGuiDesigner v2.0.0.0
7+
// You can make changes to this file and they will not be overwritten when saving.
8+
// </auto-generated>
9+
// -----------------------------------------------------------------------------
10+
namespace Showcase {
11+
using Terminal.Gui;
12+
13+
14+
public partial class Menus {
15+
16+
public Menus() {
17+
InitializeComponent();
18+
}
19+
}
20+
}

src/UI/Editor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,7 @@ private void New()
12701270
AllowedTypes = new List<IAllowedType>() { new AllowedType("C# File", ".cs") },
12711271
Path = "MyView.cs",
12721272
};
1273+
ofd.Style.PreserveFilenameOnDirectoryChanges = true;
12731274
ofd.Layout();
12741275

12751276
Application.Run(ofd);

0 commit comments

Comments
 (0)