mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
ENH:privacy agreement does not jump to local web pages
Change-Id: I00be32922e1c6e2e0bbf69a6382e405dd8c2bf98
This commit is contained in:
parent
466e17ea88
commit
6887626313
1 changed files with 3 additions and 7 deletions
|
@ -57,12 +57,8 @@ PrivacyUpdateDialog::PrivacyUpdateDialog(wxWindow* parent, wxWindowID id, const
|
|||
m_vebview_release_note->SetSize(wxSize(FromDIP(540), FromDIP(340)));
|
||||
m_vebview_release_note->SetMinSize(wxSize(FromDIP(540), FromDIP(340)));
|
||||
|
||||
fs::path ph(data_dir());
|
||||
ph /= "resources/tooltip/privacyupdate.html";
|
||||
if (!fs::exists(ph)) {
|
||||
ph = resources_dir();
|
||||
ph /= "tooltip/privacyupdate.html";
|
||||
}
|
||||
fs::path ph(resources_dir());
|
||||
ph /= "tooltip/privacyupdate.html";
|
||||
m_host_url = ph.string();
|
||||
std::replace(m_host_url.begin(), m_host_url.end(), '\\', '/');
|
||||
m_host_url = "file:///" + m_host_url;
|
||||
|
@ -87,7 +83,7 @@ PrivacyUpdateDialog::PrivacyUpdateDialog(wxWindow* parent, wxWindowID id, const
|
|||
e.Skip();
|
||||
});
|
||||
|
||||
m_vebview_release_note->Bind(wxEVT_WEBVIEW_NAVIGATING , &PrivacyUpdateDialog::OnNavigating, this);
|
||||
//m_vebview_release_note->Bind(wxEVT_WEBVIEW_NAVIGATING , &PrivacyUpdateDialog::OnNavigating, this);
|
||||
|
||||
m_button_ok = new Button(this, _L("Accept"));
|
||||
m_button_ok->SetBackgroundColor(btn_bg_green);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue