FIX: fix a crash issue of mac os

GITHUB: https://github.com/bambulab/BambuStudio/issues/2573

Change-Id: Ic365bc411dd829701ce4ffd0090b09367cb6eddc
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2023-10-08 08:48:35 +08:00 committed by Lane.Wei
parent 7744f5e479
commit 8c71fc192f
1 changed files with 2 additions and 0 deletions

View File

@ -37,12 +37,14 @@ PrinterWebView::PrinterWebView(wxWindow *parent)
topsizer->Add(m_browser, wxSizerFlags().Expand().Proportion(1));
// Log backend information
/* m_browser->GetUserAgent() may lead crash
if (wxGetApp().get_mode() == comDevelop) {
wxLogMessage(wxWebView::GetBackendVersionInfo().ToString());
wxLogMessage("Backend: %s Version: %s", m_browser->GetClassInfo()->GetClassName(),
wxWebView::GetBackendVersionInfo().ToString());
wxLogMessage("User Agent: %s", m_browser->GetUserAgent());
}
*/
//Zoom
m_zoomFactor = 100;