File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ private static CodeExpression TreeBuilderForFileSystemInfo()
107107 {
108108 return new CodeSnippetExpression ( """
109109
110- new Terminal.Gui.DelegateTreeBuilder<System.IO.FileSystemInfo>((p) =>
110+ new Terminal.Gui.Views. DelegateTreeBuilder<System.IO.FileSystemInfo>((p) =>
111111 {
112112 try
113113 {
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ public static class ViewFactory
5858 typeof ( TileView ) ,
5959
6060 // Terminal.Gui combo boxes do not really work properly
61- typeof ( ComboBox )
61+ typeof ( ComboBox ) ,
62+ typeof ( FlagSelector < > )
6263 ] ;
6364
6465 /// <summary>
@@ -97,7 +98,8 @@ internal static MenuBarItem[] DefaultMenuBarItems
9798 } )
9899 . Where ( filteredType => filteredType == typeof ( View ) || filteredType . IsSubclassOf ( typeof ( View ) )
99100 && filteredType != typeof ( Adornment )
100- && ! filteredType . IsSubclassOf ( typeof ( Adornment ) ) )
101+ && filteredType != typeof ( FlagSelector < > )
102+ && filteredType != typeof ( FlagSelector < > ) )
101103 . Except ( KnownUnsupportedTypes )
102104 // Slider is an alias of Slider<object> so don't offer that
103105 . Where ( vt => vt != typeof ( Slider ) ) ;
Original file line number Diff line number Diff line change @@ -86,16 +86,16 @@ public void TestAddingMenu_AtRoot_Duplicates()
8686 FileAssert . Exists ( ( ( Design ) viewIn . Data ) . SourceCode . DesignerFile ) ;
8787 var code = File . ReadAllText ( ( ( Design ) viewIn . Data ) . SourceCode . DesignerFile . FullName ) ;
8888
89- StringAssert . Contains ( "private Terminal.Gui.MenuBarItem fileF9Menu;" , code ) ;
90- StringAssert . Contains ( "private Terminal.Gui.MenuBarItem fishMenu;" , code ) ;
91- StringAssert . Contains ( "private Terminal.Gui.MenuBarItem fish2Menu;" , code ) ;
89+ StringAssert . Contains ( "private Terminal.Gui.Views. MenuBarItem fileF9Menu;" , code ) ;
90+ StringAssert . Contains ( "private Terminal.Gui.Views. MenuBarItem fishMenu;" , code ) ;
91+ StringAssert . Contains ( "private Terminal.Gui.Views. MenuBarItem fish2Menu;" , code ) ;
9292
9393
9494 StringAssert . Contains (
95- "private Terminal.Gui.MenuItem editMeMenuItem;" ,
95+ "private Terminal.Gui.Views. MenuItem editMeMenuItem;" ,
9696 code ,
9797 "Expected these to be created as template items under the new top level menus" ) ;
98- StringAssert . Contains ( "private Terminal.Gui.MenuItem editMeMenuItem2;" , code ) ;
98+ StringAssert . Contains ( "private Terminal.Gui.Views. MenuItem editMeMenuItem2;" , code ) ;
9999 }
100100 [ Test ]
101101 public void TestAddingMenu_AtRoot_UnDo ( )
You can’t perform that action at this time.
0 commit comments