mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 19:01:02 +00:00
fix: clear webview document on stop
This commit is contained in:
@@ -71,6 +71,8 @@ void WebMediaController::Stop()
|
|||||||
if (m_webview) {
|
if (m_webview) {
|
||||||
m_webview->RunScript("if(typeof stopCameraRefresh==='function') stopCameraRefresh();");
|
m_webview->RunScript("if(typeof stopCameraRefresh==='function') stopCameraRefresh();");
|
||||||
m_webview->Stop();
|
m_webview->Stop();
|
||||||
|
m_webview->SetPage("", "about:blank");
|
||||||
|
m_webview->ClearHistory();
|
||||||
}
|
}
|
||||||
m_url.clear();
|
m_url.clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user