Closed gogolxdong closed 3 years ago
Sorry, I cannot catch your problem. Why not use proc canGoBack*(self: wWebView): bool
?
I think exposing ptr IWebBrowser2
is reasonable, but not getWeb(), it returns a private object that may be changed later.
There is a requirement of release resource for the else branch in webView.goBack() in my application and here are corresponding two solutions which I can think of, one is adding a closure parameter like
another is exposing those and disable the assertion. Which do you prefer? BTW, this is really the best windows GUI framework in Nim, thanks for your contribution!