window_manager
window_manager copied to clipboard
[Windows] Calling destroy() method is crashing the app and app is not responding anymore.
Expected result : app gets closed immediately after calling destroy method
I also face this issue on version 0.3.9. And it happens in release build only, which is even more strange...
For those looking for a solution, a workaround can be found here: https://github.com/leanflutter/window_manager/issues/478#issuecomment-2312763103
In my case, I simply added exit(0)
when closing the app from the tray icon menu:
windowManager.destroy().then((_) => exit(0));