Skip to content

Commit

Permalink
Merge pull request #523 from unoplatform/dev/mazi/title
Browse files Browse the repository at this point in the history
fix: Adjust `Title` setter
  • Loading branch information
jeromelaban authored Feb 6, 2024
2 parents fa3f970 + 6c466bb commit 9bbd775
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 9bbd775

Please sign in to comment.