To reproduce:
- Call
w.Show or w.ShowBrowser
- Ensure that the target URL does not actually allow WebUI to connect properly (i.e. no
/webui.js endpoint)
Show will return an error (correct behavior), but the window cannot be closed
- Call
w.Close() or w.Destroy() and notice that the window will remain open. In fact, even ui.Exit() or ui.Clean() have no effect on the "orphaned" window.
This could be an issue with the WebUI library... or perhaps WebView... I'm not sure.
go version go1.24.0 windows/amd64
github.com/webui-dev/go-webui/v2 v2.4.3-0.20250107141857-41f2f2df30c6
github.com/webui-dev/webui v0.0.0-20250406153953-7adbdc482258