void NodeJSWorkspace::OnAllEditorsClosed(wxCommandEvent& event) { event.Skip(); if(m_showWelcomePage) { m_showWelcomePage = false; // Show the 'Welcome Page' wxFrame* frame = EventNotifier::Get()->TopFrame(); wxCommandEvent eventShowWelcomePage(wxEVT_MENU, XRCID("view_welcome_page")); eventShowWelcomePage.SetEventObject(frame); frame->GetEventHandler()->AddPendingEvent(eventShowWelcomePage); } }
void PhpPlugin::OnAllEditorsClosed(wxCommandEvent& e) { e.Skip(); /// If all editors closed event was triggered due to workspace close /// show the welcome page if(m_showWelcomePage) { m_showWelcomePage = false; // Show the 'Welcome Page' wxCommandEvent eventShowWelcomePage(wxEVT_COMMAND_MENU_SELECTED, XRCID("view_welcome_page")); eventShowWelcomePage.SetEventObject(FRAME); FRAME->GetEventHandler()->AddPendingEvent(eventShowWelcomePage); } }