mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
ENH: [STUDIO-1647] use WebView2 put_UserAgent
Change-Id: Ifae6589892353adb4b940fbe77d7d0f9521330dc
This commit is contained in:
parent
a953442c9e
commit
d164889aa4
4 changed files with 46 additions and 49 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue