flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[desktop_multi_window] Error: main window already exists

Open DanielBerrioB opened this issue 2 years ago • 1 comments

Hi guys!

I'm having an issue and it turns out that when creating a new window it says: Error: main window already exists, any ideas of why this is happening?

Thanks for the help!

A clear and concise description of what the bug is.

Reproduce Steps

Steps to reproduce the behaviour:

  1. Just when creating the window following the example it says, Error: main window already exists.
  • Flutter Version: v3.16.1
  • OS: Windows
  • plugin: desktop_multi_window 0.2.0

DanielBerrioB avatar Nov 28 '23 16:11 DanielBerrioB

Contrary to my prior comment, registering DesktopMultiWindowPlugin on sub-windows does make a difference

When trying to send commands from sub to main window, MissingPluginException is thrown

  • recommendation: manually register each plugin in sub-window except for DesktopMultiWindowPlugin https://github.com/MixinNetwork/flutter-plugins/issues/137#issuecomment-1925410276
  • will get rid of this error message as well

isaacy13 avatar Feb 03 '24 17:02 isaacy13