From 892960c83d3c5a0722f060fe4f4bb15e7620c807 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Wed, 2 Mar 2022 14:18:06 -0400 Subject: [PATCH] Merge pull request #7736 from AvaloniaUI/fixes/mac-os-set-window-title-null allow setting the window title to null on osx. --- src/Avalonia.Native/WindowImpl.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Avalonia.Native/WindowImpl.cs b/src/Avalonia.Native/WindowImpl.cs index f740be44a23..865aab3fd10 100644 --- a/src/Avalonia.Native/WindowImpl.cs +++ b/src/Avalonia.Native/WindowImpl.cs @@ -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 {