FIX: destory timers & check webview consist

Change-Id: If95a973e1b3c6bf0da3611c30e0e44e191c9b06a
This commit is contained in:
chunmao.guo 2022-08-09 09:20:33 +08:00 committed by Lane.Wei
parent cd3a721f86
commit 7be639019e
8 changed files with 19 additions and 10 deletions

View file

@ -28,6 +28,8 @@ private:
MarkdownTip();
~MarkdownTip();
void LoadStyle();
bool ShowTip(wxPoint pos, std::string const &tip, std::string const & tooltip);
@ -48,13 +50,13 @@ private:
void OnTimer(wxTimerEvent& event);
private:
wxWebView* _tipView = NULL;
wxWebView * _tipView = nullptr;
std::string _lastTip;
std::string _pendingScript = " ";
std::string _language;
wxPoint _requestPos;
double _lastHeight = 0;
wxTimer* _timer;
wxTimer* _timer = nullptr;
bool _hide = false;
bool _data_dir = false;
};