alroyso 1 ano atrás
pai
commit
5a667c50cc
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      windows/runner/main.cpp

+ 2 - 0
windows/runner/main.cpp

@@ -13,6 +13,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
 //    CreateAndAttachConsole();
 //  }
 
+// https://github.com/biyidev/biyi/blob/152bc7bbced37ba41ea6de42830a001c09f093b4/windows/runner/main.cpp#L12-L19
   HWND hwnd = ::FindWindow(L"FLUTTER_RUNNER_WIN32_WINDOW", L"naiyouwl");
   if (hwnd != NULL) {
     DispatchToProtocolHandler(hwnd);
@@ -20,6 +21,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
     ::SetForegroundWindow(hwnd);
     return EXIT_FAILURE;
   }
+
 // https://github.com/flutter/flutter/issues/47891#issuecomment-708850435
 // https://github.com/flutter/flutter/issues/47891#issuecomment-869729956
 // https://github.com/dart-lang/sdk/issues/39945#issuecomment-870428151