FIX: Open New WebTab in Local Browser

JIRA: none
Change-Id: I62baf32ec4ebb3130fe1721dbecbae8ed2533423
This commit is contained in:
zorro.zhang 2024-09-04 15:55:36 +08:00 committed by Lane.Wei
parent 8d65ede5e0
commit ba35ed5938
1 changed files with 5 additions and 4 deletions

View File

@ -1021,10 +1021,11 @@ void WebViewPanel::OnNewWindow(wxWebViewEvent& evt)
if (wxGetApp().get_mode() == comDevelop)
wxLogMessage("%s", "New window; url='" + evt.GetURL() + "'" + flag);
//If we handle new window events then just load them in this window as we
//are a single window browser
if (m_tools_handle_new_window->IsChecked())
m_browser->LoadURL(evt.GetURL());
//If we handle new window events then just load them in local browser
if (m_tools_handle_new_window->IsChecked())
{
wxLaunchDefaultBrowser(evt.GetURL());
}
UpdateState();
}