fix of opening external browser

This commit is contained in:
David Kocik 2024-08-16 12:06:01 +02:00 committed by Lukas Matena
parent 07320325e1
commit 23cc50c9f5

View File

@ -1383,7 +1383,7 @@ void LoginWebViewDialog::on_navigation_request(wxWebViewEvent &evt)
evt.Veto(); evt.Veto();
m_ret_val = into_u8(url); m_ret_val = into_u8(url);
EndModal(wxID_OK); EndModal(wxID_OK);
} else if (!url.starts_with(L"https://account.prusa3d.com")) { } else if (!url.starts_with(L"https://account.prusa3d.com") && url.starts_with(L"http")) {
m_ret_val = GUI::into_u8(url); m_ret_val = GUI::into_u8(url);
EndModal(wxID_EXECUTE); EndModal(wxID_EXECUTE);
} }