Skip to content

Commit

Permalink
Workaround to fix window title on WinUI
Browse files Browse the repository at this point in the history
  • Loading branch information
BurkusCat committed Jan 1, 2024
1 parent 5c41f07 commit 0805e2b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Burkus.Mvvm.Maui.SourceGenerators/AppSourceGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,16 @@ protected override Window CreateWindow(IActivationState? activationState)
burkusMvvmBuilder.onStartFunc.Invoke(navigationService, serviceProvider);
}}
return base.CreateWindow(activationState);
var window = base.CreateWindow(activationState);
#if WINDOWS
if (window != null)
{{
window.Title = AppInfo.Current.Name;
}}
#endif
return window;
}}
}}";

Expand Down

0 comments on commit 0805e2b

Please sign in to comment.