Skip to content

Commit

Permalink
fix: Adjust title setter
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Feb 6, 2024
1 parent fa3f970 commit 6c466bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Uno.Playground.Shared/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs e)
Console.WriteLine("launched!");
SetupAppCenter();

#if __WASM__
ApplicationView.GetForCurrentView().Title = "Uno Playground";
#endif
#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
{
Expand Down Expand Up @@ -156,6 +153,10 @@ protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs e)
Microsoft.UI.Xaml.Window.Current.Content = _rootFrame;
}

#if HAS_UNO
Microsoft.UI.Xaml.Window.Current.Title = "Uno Playground";
#endif

if (e.UWPLaunchActivatedEventArgs.PrelaunchActivated == false)
{
if (_rootFrame.Content == null)
Expand Down

0 comments on commit 6c466bb

Please sign in to comment.