FIX: [STUDIO-1503] events bind after recreate webview

Change-Id: I90ab03a43c5bedb7a89ee50a2ead91ddf5bdf8c3
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2022-12-15 04:38:15 -05:00
1 parent eca5897a25
commit b60cabef28
2 files changed
+10 -10

No files matched your search

+3 -3
View File
@@ -236,9 +236,9 @@ void MarkdownTip::RunScript(std::string const& script)
wxWebView* MarkdownTip::CreateTipView(wxWindow* parent)
{
wxWebView *tipView = WebView::CreateWebView(parent, "");
tipView->Bind(wxEVT_WEBVIEW_LOADED, &MarkdownTip::OnLoaded, this);
tipView->Bind(wxEVT_WEBVIEW_TITLE_CHANGED, &MarkdownTip::OnTitleChanged, this);
tipView->Bind(wxEVT_WEBVIEW_ERROR, &MarkdownTip::OnError, this);
Bind(wxEVT_WEBVIEW_LOADED, &MarkdownTip::OnLoaded, this);
Bind(wxEVT_WEBVIEW_TITLE_CHANGED, &MarkdownTip::OnTitleChanged, this);
Bind(wxEVT_WEBVIEW_ERROR, &MarkdownTip::OnError, this);
return tipView;
}