alroyso 1 year ago
parent
commit
4be845b6cc
1 changed files with 0 additions and 6 deletions
  1. 0 6
      windows/runner/main.cpp

+ 0 - 6
windows/runner/main.cpp

@@ -7,13 +7,7 @@
 
 int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
                       _In_ wchar_t *command_line, _In_ int show_command) {
-  // Attach to console when present (e.g., 'flutter run') or create a
-  // new console when running with a debugger.
-//  if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
-//    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);