From a9ea41a4887513cd06d0ee4c4792202e977027d4 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Mon, 21 Oct 2024 15:41:57 -0400 Subject: [PATCH] resolve compiler warning in .NET MAUI --- Oqtane.Maui/App.xaml.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Oqtane.Maui/App.xaml.cs b/Oqtane.Maui/App.xaml.cs index 0d60ea85..4a344371 100644 --- a/Oqtane.Maui/App.xaml.cs +++ b/Oqtane.Maui/App.xaml.cs @@ -5,7 +5,10 @@ public partial class App : Application public App() { InitializeComponent(); - - MainPage = new MainPage(); } + + protected override Window CreateWindow(IActivationState? activationState) + { + return new Window(new MainPage()); + } }