Skip to content

Commit 6c466bb

Browse files
committed
fix: Adjust title setter
1 parent fa3f970 commit 6c466bb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Uno.Playground.Shared/App.xaml.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs e)
118118
Console.WriteLine("launched!");
119119
SetupAppCenter();
120120

121-
#if __WASM__
122-
ApplicationView.GetForCurrentView().Title = "Uno Playground";
123-
#endif
124121
#if DEBUG
125122
if (System.Diagnostics.Debugger.IsAttached)
126123
{
@@ -156,6 +153,10 @@ protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs e)
156153
Microsoft.UI.Xaml.Window.Current.Content = _rootFrame;
157154
}
158155

156+
#if HAS_UNO
157+
Microsoft.UI.Xaml.Window.Current.Title = "Uno Playground";
158+
#endif
159+
159160
if (e.UWPLaunchActivatedEventArgs.PrelaunchActivated == false)
160161
{
161162
if (_rootFrame.Content == null)

0 commit comments

Comments
 (0)