ENH: [STUDIO-1647] use WebView2 put_UserAgent

Change-Id: Ifae6589892353adb4b940fbe77d7d0f9521330dc
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2023-01-10 19:08:26 +08:00
1 parent a953442c9e
commit d164889aa4
4 files changed
+46 -49

No files matched your search

-10
View File
@@ -81,16 +81,6 @@ MarkdownTip::MarkdownTip()
_timer = new wxTimer;
_timer->Bind(wxEVT_TIMER, &MarkdownTip::OnTimer, this);
Bind(EVT_WEBVIEW_RECREATED, [this](auto &evt) {
Hide();
_lastTip.clear();
#ifdef __WXMSW__
_tipView = dynamic_cast<wxWebView *>(evt.GetEventObject());
GetSizer()->Add(_tipView, wxSizerFlags().Expand().Proportion(1));
Layout();
#endif
});
}
MarkdownTip::~MarkdownTip() { delete _timer; }