-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebUI on MacOS 14.6 doesn't quit the app after closing last Webview window #71
Comments
Sorry, I can't debug this problem at the moment because I don't have a mac |
I think that there is a value in having this just hanging here for now. If anyone encounters the same problem the description also outlines the "workaround" so might be helpful in that way. |
webui use websockets, it does not use webview APIs, so you need to make sure you are including
webui does not track webview window using APIs, but it tracks how many websocket clients are connected, so when you close the window, maybe macOS keep websocket connection open or something... Another thing, webui will always stay connected if you set timeout to
All events including open and close are inside bind all events (with ""), but it seems you don't get any for some reason. |
Can you use the debug version of webui to see logs? |
@AlbertShown should I change something in the dependencies to use the debug version? |
I don't know if Zig build have a debug option, but you can manually download webui lib, then copy the one from |
This is actually quite a good point, the Zig |
Update: after #70, webui will now show logs when building in debug mode. |
I think the title says it all. I'm running the on hash 1220f7cb9608ca0b5946bee76bb9fe3867aa5cab47990d9cf02339d89dc7ae1d9a32.
I'm trying to think of any other way to capture the window closing event but can't figure it out.
// Edit
I did some tests. I checked that Firefox and Chrome work fine. Safari doesn't start at all. And the "no quitting" problem seems to be related to
webui.Brrowser.Webview
.I've also noticed that if I bind all events (with
""
) in Webview it doesn't pass through any - this might be connected.Anyway - I'm going to use
webui.Browser.ChromiumBased
and it should work for my use case.The text was updated successfully, but these errors were encountered: