Skip to content

Commit 1771c90

Browse files
author
tznind
committed
Compiling on 5090
1 parent 418608c commit 1771c90

5 files changed

Lines changed: 11 additions & 10 deletions

File tree

Showcase/Showcase.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Terminal.Gui" Version="2.0.0-develop.4956 " />
12+
<PackageReference Include="Terminal.Gui" Version="2.0.0-develop.5090 " />
1313
</ItemGroup>
1414

1515
</Project>

src/MenuTracker.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Concurrent;
22
using System.Diagnostics.CodeAnalysis;
33
using Terminal.Gui;
4+
using Terminal.Gui.App;
45
using Terminal.Gui.Views;
56

67
namespace TerminalGuiDesigner;
@@ -66,11 +67,11 @@ private void UnsubscribeFromMenuBarItem(MenuBarItem menuBarItem)
6667
}
6768
}
6869

69-
private void OnPopoverMenuOpenChanged(object? sender, Terminal.Gui.App.EventArgs<bool> e)
70+
private void OnPopoverMenuOpenChanged(object? sender, ValueChangedEventArgs<bool> e)
7071
{
7172
if (sender is MenuBarItem menuBarItem)
7273
{
73-
if (e.Value) // Menu opened
74+
if (e.NewValue) // Menu opened
7475
{
7576
// Set the currently open menu item to the MenuBarItem itself
7677
// The KeyboardManager will use this to enable renaming
@@ -82,7 +83,7 @@ private void OnPopoverMenuOpenChanged(object? sender, Terminal.Gui.App.EventArgs
8283
}
8384

8485
// Convert empty menus when closing
85-
if (!e.Value)
86+
if (!e.NewValue)
8687
{
8788
this.ConvertEmptyMenus();
8889
}

src/TerminalGuiDesigner.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<PackageOutputPath>./nupkg</PackageOutputPath>
2121
<ImplicitUsings>enable</ImplicitUsings>
2222
<PackageId>TerminalGuiDesigner</PackageId>
23-
<Version>2.0.0-develop.4956 </Version>
23+
<Version>2.0.0-develop.5090 </Version>
2424
<Authors>Thomas Nind</Authors>
2525
<Nullable>enable</Nullable>
2626
<PackageLicenseExpression>MIT</PackageLicenseExpression>
@@ -33,7 +33,7 @@
3333
<PackageIcon>logo.png</PackageIcon>
3434
<PackageReadmeFile>README.md</PackageReadmeFile>
3535
<PackageReleaseNotes>
36-
2.0.0-alpha.4956
36+
2.0.0-alpha.5090
3737
* Update to latest nuget package
3838
* Fix crash caused moving PosRelative view without its pair into different container View
3939
2.0.0-alpha.4519
@@ -165,7 +165,7 @@
165165
<PackageReference Include="Serilog" Version="4.2.0" />
166166
<PackageReference Include="Serilog.Extensions.Logging" Version="9.0.0" />
167167
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
168-
<PackageReference Include="Terminal.Gui" Version="2.0.0-develop.4956 " />
168+
<PackageReference Include="Terminal.Gui" Version="2.0.0-develop.5090 " />
169169
<PackageReference Include="nlog" Version="5.3.3" />
170170
<PackageReference Include="Basic.Reference.Assemblies.Net100" Version="1.7.7" />
171171
<PackageReference Include="System.CodeDom" Version="10.0.0" />

src/UI/Editor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,14 +1027,14 @@ private void CreateAndShowContextMenu(Mouse? m, Design? rightClicked)
10271027

10281028
// This internal method call shouldn't be required
10291029
menu.App = app;
1030-
app.Popover!.Register(menu);
1030+
app.Popovers!.Register(menu);
10311031

10321032
menu.MakeVisible(position);
10331033
menu.Accepted += (_, _) =>
10341034
{
10351035
this.menuOpen = false;
10361036
SelectionManager.Instance.LockSelection = false;
1037-
app.Popover.DeRegister(menu);
1037+
app.Popovers.DeRegister(menu);
10381038
};
10391039
}
10401040

tests/ViewExtensionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace UnitTests;
44

55
[TestFixture]
6-
[TestOf( typeof( ViewExtensions ) )]
6+
[TestOf( typeof( TerminalGuiDesigner.ViewExtensions ) )]
77
[Category( "Core" )]
88
[Category( "UI" )]
99
internal class ViewExtensionsTests : Tests

0 commit comments

Comments
 (0)