Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for [Windows]ToolbarItem visibility until Page Disappearing #26915

Merged
merged 10 commits into from
Feb 7, 2025
2 changes: 1 addition & 1 deletion src/Controls/src/Core/Toolbar/Toolbar.Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ internal void UpdateMenu()

internal void OnToolbarItemPropertyChanged(object? sender, PropertyChangedEventArgs e)
{
if (Handler.PlatformView is not MauiToolbar wh)
if (Handler?.PlatformView is not MauiToolbar wh)
return;

var commandBar = wh.CommandBar;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if TEST_FAILS_ON_WINDOWS //App Crashes on windows, Issue: https://github.com/dotnet/maui/issues/26803
using NUnit.Framework;
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -23,4 +22,3 @@ public void TestIssue9419()
}
}
}
#endif
Loading