fix(windows): set ui thread policy
This commit is contained in:
@@ -18,6 +18,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
|
||||
::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
|
||||
|
||||
flutter::DartProject project(L"data");
|
||||
project.set_ui_thread_policy(flutter::UIThreadPolicy::RunOnSeparateThread);
|
||||
|
||||
std::vector<std::string> command_line_arguments =
|
||||
GetCommandLineArguments();
|
||||
|
||||
Reference in New Issue
Block a user