FIX: home page not emit get_recent_projects on macOS
Change-Id: I9e0ec1c4b945dec00e33d7fb40200f96af6f420d Jira: STUDIO-8648
This commit is contained in:
parent
0cce6619ce
commit
9f387dacb2
|
@ -41,6 +41,16 @@ WebViewPanel::WebViewPanel(wxWindow *parent)
|
||||||
m_Region = wxGetApp().app_config->get_country_code();
|
m_Region = wxGetApp().app_config->get_country_code();
|
||||||
m_loginstatus = -1;
|
m_loginstatus = -1;
|
||||||
|
|
||||||
|
// Connect the webview events
|
||||||
|
Bind(wxEVT_WEBVIEW_NAVIGATING, &WebViewPanel::OnNavigationRequest, this);
|
||||||
|
Bind(wxEVT_WEBVIEW_NAVIGATED, &WebViewPanel::OnNavigationComplete, this);
|
||||||
|
Bind(wxEVT_WEBVIEW_LOADED, &WebViewPanel::OnDocumentLoaded, this);
|
||||||
|
Bind(wxEVT_WEBVIEW_TITLE_CHANGED, &WebViewPanel::OnTitleChanged, this);
|
||||||
|
Bind(wxEVT_WEBVIEW_ERROR, &WebViewPanel::OnError, this);
|
||||||
|
Bind(wxEVT_WEBVIEW_NEWWINDOW, &WebViewPanel::OnNewWindow, this);
|
||||||
|
Bind(wxEVT_WEBVIEW_SCRIPT_MESSAGE_RECEIVED, &WebViewPanel::OnScriptMessage, this);
|
||||||
|
Bind(EVT_RESPONSE_MESSAGE, &WebViewPanel::OnScriptResponseMessage, this);
|
||||||
|
|
||||||
wxString UrlLeft = wxString::Format("file://%s/web/homepage3/left.html", from_u8(resources_dir()));
|
wxString UrlLeft = wxString::Format("file://%s/web/homepage3/left.html", from_u8(resources_dir()));
|
||||||
wxString UrlRight = wxString::Format("file://%s/web/homepage3/home.html", from_u8(resources_dir()));
|
wxString UrlRight = wxString::Format("file://%s/web/homepage3/home.html", from_u8(resources_dir()));
|
||||||
|
|
||||||
|
@ -215,16 +225,6 @@ WebViewPanel::WebViewPanel(wxWindow *parent)
|
||||||
|
|
||||||
#endif //BBL_RELEASE_TO_PUBLIC
|
#endif //BBL_RELEASE_TO_PUBLIC
|
||||||
|
|
||||||
// Connect the webview events
|
|
||||||
Bind(wxEVT_WEBVIEW_NAVIGATING, &WebViewPanel::OnNavigationRequest, this);
|
|
||||||
Bind(wxEVT_WEBVIEW_NAVIGATED, &WebViewPanel::OnNavigationComplete, this);
|
|
||||||
Bind(wxEVT_WEBVIEW_LOADED, &WebViewPanel::OnDocumentLoaded, this);
|
|
||||||
Bind(wxEVT_WEBVIEW_TITLE_CHANGED, &WebViewPanel::OnTitleChanged, this);
|
|
||||||
Bind(wxEVT_WEBVIEW_ERROR, &WebViewPanel::OnError, this);
|
|
||||||
Bind(wxEVT_WEBVIEW_NEWWINDOW, &WebViewPanel::OnNewWindow, this);
|
|
||||||
Bind(wxEVT_WEBVIEW_SCRIPT_MESSAGE_RECEIVED, &WebViewPanel::OnScriptMessage, this);
|
|
||||||
Bind(EVT_RESPONSE_MESSAGE, &WebViewPanel::OnScriptResponseMessage, this);
|
|
||||||
|
|
||||||
// Connect the menu events
|
// Connect the menu events
|
||||||
Bind(wxEVT_MENU, &WebViewPanel::OnViewSourceRequest, this, viewSource->GetId());
|
Bind(wxEVT_MENU, &WebViewPanel::OnViewSourceRequest, this, viewSource->GetId());
|
||||||
Bind(wxEVT_MENU, &WebViewPanel::OnViewTextRequest, this, viewText->GetId());
|
Bind(wxEVT_MENU, &WebViewPanel::OnViewTextRequest, this, viewText->GetId());
|
||||||
|
|
Loading…
Reference in New Issue