Skip to content

Commit

Permalink
Merge pull request AvaloniaUI#7736 from AvaloniaUI/fixes/mac-os-set-w…
Browse files Browse the repository at this point in the history
…indow-title-null

allow setting the window title to null on osx.
  • Loading branch information
maxkatz6 authored and danwalmsley committed Mar 2, 2022
1 parent d884847 commit 892960c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Avalonia.Native/WindowImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ public void SetTitleBarColor(Avalonia.Media.Color color)
_native.SetTitleBarColor(new AvnColor { Alpha = color.A, Red = color.R, Green = color.G, Blue = color.B });
}

public void SetTitle(string title) => _native.SetTitle(title);
public void SetTitle(string title)
{
_native.SetTitle(title ?? "");
}

public WindowState WindowState
{
Expand Down

0 comments on commit 892960c

Please sign in to comment.