naqvis / webview

Crystal bindings to Webview library
MIT License
93 stars 8 forks source link

Closing a window exits the whole application #10

Closed kjarex closed 2 years ago

kjarex commented 2 years ago

When I close a window (via GUI) my application terminates.

When I use your example (only added the p-lines for foo bar baz):

require "webview"
wv = Webview.window(640, 480, Webview::SizeHints::NONE, "Hello WebView", "http://crystal-lang.org")
p :foo
wv.run
p :bar
wv.destroy
p :baz

I only reach up to :foo. There is nothing looking suspicious, meaning no errors or unexpected messages.

This happens on macOS 10.14 (if it's OS related).

kjarex commented 2 years ago

Nevermind - it's an issue of the library itself, not of the Crystal bindings in particular.