ENH: [STUDIO-1647] use WebView2 put_UserAgent

Change-Id: Ifae6589892353adb4b940fbe77d7d0f9521330dc
This commit is contained in:
chunmao.guo 2022-12-09 10:35:36 +08:00 committed by Lane.Wei
parent a953442c9e
commit d164889aa4
4 changed files with 46 additions and 49 deletions

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; }