ui/winui/App.xaml.cpp

branch
newapi
changeset 209
770b3548906c
parent 205
b1ac0dd1d38b
--- a/ui/winui/App.xaml.cpp	Wed Oct 11 22:59:42 2023 +0200
+++ b/ui/winui/App.xaml.cpp	Wed Oct 11 23:36:03 2023 +0200
@@ -6,6 +6,8 @@
 #include "App.xaml.h"
 #include "MainWindow.xaml.h"
 
+#include "toolkit.h"
+
 using namespace winrt;
 using namespace Windows::Foundation;
 using namespace Microsoft::UI::Xaml;
@@ -43,6 +45,7 @@
 /// <param name="e">Details about the launch request and process.</param>
 void App::OnLaunched(LaunchActivatedEventArgs const&)
 {
-    window = make<MainWindow>();
-    window.Activate();
+    ui_app_run_startup();
+    //window = make<MainWindow>();
+    //window.Activate();
 }

mercurial